function FieldAPIHandlerTrait::getFieldStorageDefinition
Same name in other branches
- 8.9.x core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getFieldStorageDefinition()
- 10 core/modules/views/src/FieldAPIHandlerTrait.php \Drupal\views\FieldAPIHandlerTrait::getFieldStorageDefinition()
- 11.x 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
7 calls to FieldAPIHandlerTrait::getFieldStorageDefinition()
- Date::__construct in core/
modules/ datetime/ src/ Plugin/ views/ sort/ Date.php - Constructs a Handler object.
- 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/ argument/ Date.php - Constructs a new Date instance.
- FieldAPIHandlerTrait::getFieldDefinition in core/
modules/ views/ src/ FieldAPIHandlerTrait.php - Gets the field definition.
- ListField::init in core/
modules/ options/ src/ Plugin/ views/ filter/ ListField.php - Overrides \Drupal\views\Plugin\views\HandlerBase::init().
1 method overrides FieldAPIHandlerTrait::getFieldStorageDefinition()
- EntityField::getFieldStorageDefinition in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - Gets the field storage definition.
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.