Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Field / FieldTypePluginManagerInterface.php
index 3a5c7b546cdb65335bab13472153b9b05eeee3ca..d937aabd446d507acd09d1f9526d17c0b4723dd7 100644 (file)
@@ -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.
    *