protected function FieldAPIHandlerTrait::getFieldStorageDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getFieldStorageDefinition()
- 9 core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getFieldStorageDefinition()
Gets the field storage configuration.
Return value
\Drupal\field\FieldStorageConfigInterface The field storage definition used by this handler
6 calls to FieldAPIHandlerTrait::getFieldStorageDefinition()
- Date::__construct in core/
modules/ datetime/ src/ Plugin/ views/ filter/ Date.php - Constructs a new Date handler.
- Date::__construct in core/
modules/ datetime/ src/ Plugin/ views/ sort/ Date.php - Date::__construct in core/
modules/ datetime/ src/ Plugin/ views/ argument/ Date.php - Constructs a new Date instance.
- ListField::init in core/
modules/ options/ src/ Plugin/ views/ filter/ ListField.php - Overrides \Drupal\views\Plugin\views\HandlerBase::init().
- NumberListField::init in core/
modules/ options/ src/ Plugin/ views/ argument/ NumberListField.php
File
- core/
modules/ views/ src/ FieldAPIHandlerTrait.php, line 60
Class
- FieldAPIHandlerTrait
- A trait containing helper methods for field definitions.
Namespace
Drupal\viewsCode
protected function getFieldStorageDefinition() {
if (!$this->fieldStorageDefinition) {
$field_storage_definitions = $this
->getEntityFieldManager()
->getFieldStorageDefinitions($this->definition['entity_type']);
$this->fieldStorageDefinition = $field_storage_definitions[$this->definition['field_name']];
}
return $this->fieldStorageDefinition;
}