...
And validates if the value specified in selectionContentTypes
is an array. If not, a validation error in given.
Settings
The field definition of this FieldType can be configured with following options:
Name | Type | Default value | Description |
---|---|---|---|
| mixed | SELECTION_BROWSE | Method of selection in the administration interface |
| string|integer | null | Id of the default Location for the selection when using administration interface |
| array | array() | An array of ContentType ids that are allowed for related Content |
Following selection methods are available:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
use eZ\Publish\Core\FieldType\RelationList\Type; $settings = array( "selectionMethod" => Type::SELECTION_BROWSE, "selectionRoot" => null, "selectionContentTypes" => array() ); |
...