class FallbackFieldTypeCategory

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Field/FallbackFieldTypeCategory.php \Drupal\Core\Field\FallbackFieldTypeCategory

Fallback plugin class for FieldTypeCategoryManager.

Hierarchy

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\Field
View 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.