class FieldTypeCategory
Same name in other branches
- 11.x core/lib/Drupal/Core/Field/FieldTypeCategory.php \Drupal\Core\Field\FieldTypeCategory
Default object used for field_type_categories plugins.
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\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of FieldTypeCategory
See also
\Drupal\Core\Field\FieldTypeCategoryManager
File
-
core/
lib/ Drupal/ Core/ Field/ FieldTypeCategory.php, line 12
Namespace
Drupal\Core\FieldView 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.