class NodeSourceType extends AbstractType (View source)

Methods

__construct(NodeType $nodeType)

No description

buildForm(FormBuilderInterface $builder, array $options)

No description

configureOptions(OptionsResolver $resolver)

No description

getName()

[email protected]}

AbstractType
getFormTypeFromFieldType(NodesSources $nodeSource, NodeTypeField $field, array $options)

Returns a Symfony Form type according to a node-type field.

array
getDefaultOptions(NodeTypeField $field)

Get common options for your node-type field form components.

array
getFormOptionsFromFieldType(NodeTypeField $field)

Returns an option array for creating a Symfony Form according to a node-type field.

Details

__construct(NodeType $nodeType)

Parameters

NodeType $nodeType

buildForm(FormBuilderInterface $builder, array $options)

Parameters

FormBuilderInterface $builder
array $options

configureOptions(OptionsResolver $resolver)

Parameters

OptionsResolver $resolver

getName()

[email protected]}

AbstractType getFormTypeFromFieldType(NodesSources $nodeSource, NodeTypeField $field, array $options)

Returns a Symfony Form type according to a node-type field.

Parameters

NodesSources $nodeSource
NodeTypeField $field
array $options

Return Value

AbstractType

array getDefaultOptions(NodeTypeField $field)

Get common options for your node-type field form components.

Parameters

NodeTypeField $field

Return Value

array

array getFormOptionsFromFieldType(NodeTypeField $field)

Returns an option array for creating a Symfony Form according to a node-type field.

Parameters

NodeTypeField $field

Return Value

array