function FieldTypePluginManager::getPreconfiguredOptions
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getPreconfiguredOptions()
- 8.9.x core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getPreconfiguredOptions()
- 11.x core/lib/Drupal/Core/Field/FieldTypePluginManager.php \Drupal\Core\Field\FieldTypePluginManager::getPreconfiguredOptions()
1 call to FieldTypePluginManager::getPreconfiguredOptions()
- FieldTypePluginManager::getUiDefinitions in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManager.php, line 250
Class
- FieldTypePluginManager
- Plugin manager for 'field type' plugins.
Namespace
Drupal\Core\FieldCode
public function getPreconfiguredOptions($field_type) {
$options = [];
$class = $this->getPluginClass($field_type);
if (is_subclass_of($class, '\\Drupal\\Core\\Field\\PreconfiguredFieldUiOptionsInterface')) {
$options = $class::getPreconfiguredOptions();
$this->moduleHandler
->alter('field_ui_preconfigured_options', $options, $field_type);
}
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.