Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Field/PreconfiguredFieldUiOptionsInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
13 */ | 13 */ |
14 interface PreconfiguredFieldUiOptionsInterface { | 14 interface PreconfiguredFieldUiOptionsInterface { |
15 | 15 |
16 /** | 16 /** |
17 * Returns preconfigured field options for a field type. | 17 * Returns preconfigured field options for a field type. |
18 * | |
19 * Note that if you want to give modules an opportunity to alter the result | |
20 * of this method, you should call | |
21 * \Drupal\Core\Field\FieldTypePluginManagerInterface::getPreconfiguredOptions() | |
22 * instead. | |
18 * | 23 * |
19 * @return mixed[][] | 24 * @return mixed[][] |
20 * A multi-dimensional array with string keys and the following structure: | 25 * A multi-dimensional array with string keys and the following structure: |
21 * - label: The label to show in the field type selection list. | 26 * - label: The label to show in the field type selection list. |
22 * - category: (optional) The category in which to put the field label. | 27 * - category: (optional) The category in which to put the field label. |
33 * - type: The formatter to be used in the 'default' view mode. | 38 * - type: The formatter to be used in the 'default' view mode. |
34 * | 39 * |
35 * @see \Drupal\field\Entity\FieldStorageConfig | 40 * @see \Drupal\field\Entity\FieldStorageConfig |
36 * @see \Drupal\field\Entity\FieldConfig | 41 * @see \Drupal\field\Entity\FieldConfig |
37 * @see \Drupal\Core\Entity\Display\EntityDisplayInterface::setComponent() | 42 * @see \Drupal\Core\Entity\Display\EntityDisplayInterface::setComponent() |
43 * @see \Drupal\Core\Field\FieldTypePluginManagerInterface::getPreconfiguredOptions() | |
38 */ | 44 */ |
39 public static function getPreconfiguredOptions(); | 45 public static function getPreconfiguredOptions(); |
40 | 46 |
41 } | 47 } |