function FieldTypePluginManager::getFieldSettingsSummary
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getFieldSettingsSummary()
Returns the summary of field-level settings for a field type.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field entity.
Return value
array A renderable array for the field's field-level settings summary, as provided by the plugin definition.
Overrides FieldTypePluginManagerInterface::getFieldSettingsSummary
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php, line 149
Class
- FieldTypePluginManager
- Plugin manager for 'field type' plugins.
Namespace
Drupal\Core\FieldCode
public function getFieldSettingsSummary(FieldDefinitionInterface $field_definition) : array {
$plugin_definition = $this->getDefinition($field_definition->getType(), FALSE);
if (!empty($plugin_definition['class'])) {
$plugin_class = DefaultFactory::getPluginClass($field_definition->getType(), $plugin_definition);
return $plugin_class::fieldSettingsSummary($field_definition);
}
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.