protected function FieldFormatterWithInlineSettings::getFieldDefinition in (Entity Reference) Field Formatters 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/FieldFormatterWithInlineSettings.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterWithInlineSettings::getFieldDefinition()
- 3.x src/Plugin/Field/FieldFormatter/FieldFormatterWithInlineSettings.php \Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldFormatterWithInlineSettings::getFieldDefinition()
Get field definition for given field storage definition.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $field_storage_definition: The field storage definition.
Return value
\Drupal\Core\Field\BaseFieldDefinition The field definition.
2 calls to FieldFormatterWithInlineSettings::getFieldDefinition()
- FieldFormatterWithInlineSettings::getAvailableFormatterOptions in src/
Plugin/ Field/ FieldFormatter/ FieldFormatterWithInlineSettings.php - Get all available formatters by loading available ones and filtering out.
- FieldFormatterWithInlineSettings::settingsForm in src/
Plugin/ Field/ FieldFormatter/ FieldFormatterWithInlineSettings.php - Returns a form to configure settings for the formatter.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldFormatterWithInlineSettings.php, line 115
Class
- FieldFormatterWithInlineSettings
- Plugin implementation of the 'link' formatter.
Namespace
Drupal\field_formatter\Plugin\Field\FieldFormatterCode
protected function getFieldDefinition(FieldStorageDefinitionInterface $field_storage_definition) {
return BaseFieldDefinition::createFromFieldStorageDefinition($field_storage_definition);
}