function EntityReferenceItem::defaultFieldSettings

Overrides FieldItemBase::defaultFieldSettings

1 call to EntityReferenceItem::defaultFieldSettings()
FileItem::defaultFieldSettings in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Defines the field-level settings for this plugin.
1 method overrides EntityReferenceItem::defaultFieldSettings()
FileItem::defaultFieldSettings in core/modules/file/src/Plugin/Field/FieldType/FileItem.php
Defines the field-level settings for this plugin.

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php, line 57

Class

EntityReferenceItem
Defines the 'entity_reference' entity field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'handler' => 'default',
    'handler_settings' => [],
  ] + parent::defaultFieldSettings();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.