function FieldTypePluginManagerInterface::getPreconfiguredOptions
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php \Drupal\Core\Field\FieldTypePluginManagerInterface::getPreconfiguredOptions()
- 10 core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php \Drupal\Core\Field\FieldTypePluginManagerInterface::getPreconfiguredOptions()
- 11.x core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php \Drupal\Core\Field\FieldTypePluginManagerInterface::getPreconfiguredOptions()
Returns preconfigured field options for a field type.
This is a wrapper around \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions() allowing modules to alter the result of this method by implementing hook_field_ui_preconfigured_options_alter().
Parameters
string $field_type: The field type plugin ID.
Return value
array A multi-dimensional array as returned from \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions().
See also
\Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions()
hook_field_ui_preconfigured_options_alter()
1 method overrides FieldTypePluginManagerInterface::getPreconfiguredOptions()
- FieldTypePluginManager::getPreconfiguredOptions in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php - Returns preconfigured field options for a field type.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManagerInterface.php, line 105
Class
- FieldTypePluginManagerInterface
- Defines an interface for the field type plugin manager.
Namespace
Drupal\Core\FieldCode
public function getPreconfiguredOptions($field_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.