class FieldTypeCategory

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Field/FieldTypeCategory.php \Drupal\Core\Field\FieldTypeCategory

Default object used for field_type_categories plugins.

Hierarchy

Expanded class hierarchy of FieldTypeCategory

See also

\Drupal\Core\Field\FieldTypeCategoryManager

File

core/lib/Drupal/Core/Field/FieldTypeCategory.php, line 12

Namespace

Drupal\Core\Field
View source
class FieldTypeCategory extends PluginBase implements FieldTypeCategoryInterface {
    
    /**
     * {@inheritdoc}
     */
    public function getLabel() : string|\Stringable {
        return $this->pluginDefinition['label'];
    }
    
    /**
     * {@inheritdoc}
     */
    public function getDescription() : string|\Stringable {
        return $this->pluginDefinition['description'];
    }
    
    /**
     * {@inheritdoc}
     */
    public function getWeight() : int {
        return $this->pluginDefinition['weight'];
    }
    
    /**
     * {@inheritdoc}
     */
    public function getLibraries() : array {
        return $this->pluginDefinition['libraries'] ?? [];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
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.