public function propagateAsRepeatableSchema(Field $field, $index)
    {
        if ($field->isTypeOf('tinymce')) {
            throw new FieldException("Tinymce [{$field->getSlug()}] field cannot be nested in repeatable field.");
        }

        foreach ($this->getValues() as $key => $value) {
            $clone = clone $field;

            $clone->setValue($value[$clone->getSlug()])->dispatch();

            $this->heap[$key][$index] = $clone;
        }
    }
public function propagateAsRepeatableSchema(Field $field, $index)
    {
        if ($field->isTypeOf('tinymce')) {
            throw new FieldException("Tinymce [{$field->getSlug()}] field cannot be nested in repeatable field.");
        }

        foreach ($this->getValues() as $key => $value) {
            $clone = clone $field;

            $clone->setValue($value[$clone->getSlug()])->dispatch();

            $this->heap[$key][$index] = $clone;
        }
    }
public function propagateAsRepeatableSchema ( Field $ field , $ index ) { if ( $ field -> isTypeOf ( 'tinymce' ) ) { throw new FieldException ( "Tinymce [{$field->getSlug()}] field cannot be nested in repeatable field." ) ; } foreach ( $ this -> getValues ( ) as $ key => $ value ) { $ clone = clone $ field ; $ clone -> setValue ( $ value [ $ clone -> getSlug ( ) ] ) -> dispatch ( ) ; $ this -> heap [ $ key ] [ $ index ] = $ clone ; } }
Propagate schema for repeatable field.

@param \Assely\Field\Field $field

@return self
Propagate schema for repeatable field .