X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FField%2FFieldTypePluginManagerInterface.php;h=d937aabd446d507acd09d1f9526d17c0b4723dd7;hb=refs%2Fheads%2Fd864;hp=3a5c7b546cdb65335bab13472153b9b05eeee3ca;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php b/web/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php index 3a5c7b546..d937aabd4 100644 --- a/web/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php +++ b/web/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php @@ -84,6 +84,26 @@ interface FieldTypePluginManagerInterface extends PluginManagerInterface, Catego */ public function getUiDefinitions(); + /** + * 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(). + * + * @param string $field_type + * The field type plugin ID. + * + * @return array + * A multi-dimensional array as returned from + * \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions(). + * + * @see \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions() + * @see hook_field_ui_preconfigured_options_alter() + */ + public function getPreconfiguredOptions($field_type); + /** * Returns the PHP class that implements the field type plugin. *