class FallbackFieldTypeCategory
Same name in other branches
- 11.x core/lib/Drupal/Core/Field/FallbackFieldTypeCategory.php \Drupal\Core\Field\FallbackFieldTypeCategory
Fallback plugin class for FieldTypeCategoryManager.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Field\FieldTypeCategory extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Field\FieldTypeCategoryInterface
- class \Drupal\Core\Field\FallbackFieldTypeCategory extends \Drupal\Core\Field\FieldTypeCategory
- class \Drupal\Core\Field\FieldTypeCategory extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Field\FieldTypeCategoryInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of FallbackFieldTypeCategory
1 file declares its use of FallbackFieldTypeCategory
- FieldStorageAddForm.php in core/
modules/ field_ui/ src/ Form/ FieldStorageAddForm.php
1 string reference to 'FallbackFieldTypeCategory'
- core.field_type_categories.yml in core/
core.field_type_categories.yml - core/core.field_type_categories.yml
File
-
core/
lib/ Drupal/ Core/ Field/ FallbackFieldTypeCategory.php, line 8
Namespace
Drupal\Core\FieldView source
class FallbackFieldTypeCategory extends FieldTypeCategory {
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, string $plugin_id, array $plugin_definition) {
$plugin_id = $configuration['unique_identifier'];
$plugin_definition = [
'label' => $configuration['label'],
'description' => $configuration['description'] ?? '',
'weight' => $configuration['weight'] ?? 0,
] + $plugin_definition;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
FallbackFieldTypeCategory::__construct | public | function | ||
FieldTypeCategory::getDescription | public | function | Returns the field group description. | Overrides FieldTypeCategoryInterface::getDescription |
FieldTypeCategory::getLabel | public | function | Returns the field group label. | Overrides FieldTypeCategoryInterface::getLabel |
FieldTypeCategory::getLibraries | public | function | Returns asset libraries for the field group. | Overrides FieldTypeCategoryInterface::getLibraries |
FieldTypeCategory::getWeight | public | function | Returns the field group weight. | Overrides FieldTypeCategoryInterface::getWeight |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.