You are here

interface DynamicallyFieldableEntityStorageInterface in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface
  2. 10 core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface

A storage that supports entity types with dynamic field definitions.

A storage that implements this interface can react to the entity type's field definitions changing, due to modules being installed or uninstalled, or via field UI, or via code changes to the entity class.

For example, configurable fields defined and exposed by field.module.

Hierarchy

Expanded class hierarchy of DynamicallyFieldableEntityStorageInterface

All classes that implement DynamicallyFieldableEntityStorageInterface

3 files declare their use of DynamicallyFieldableEntityStorageInterface
entity.api.php in core/lib/Drupal/Core/Entity/entity.api.php
Hooks and documentation related to entities.
field.module in core/modules/field/field.module
Attach custom data fields to Drupal entities.
FieldDefinitionListenerTest.php in core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php

File

core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php, line 17

Namespace

Drupal\Core\Entity
View source
interface DynamicallyFieldableEntityStorageInterface extends FieldableEntityStorageInterface, FieldStorageDefinitionListenerInterface, FieldDefinitionListenerInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
EntityStorageInterface::create public function Constructs a new entity object, without permanently saving it. 1
EntityStorageInterface::delete public function Deletes permanently saved entities. 1
EntityStorageInterface::deleteRevision public function Delete a specific entity revision. 4
EntityStorageInterface::FIELD_LOAD_CURRENT constant Load the most recent version of an entity's field data.
EntityStorageInterface::FIELD_LOAD_REVISION constant Load the version of an entity's field data specified in the entity.
EntityStorageInterface::getAggregateQuery public function Gets an aggregated query instance. 1
EntityStorageInterface::getEntityType public function Gets the entity type definition. 1
EntityStorageInterface::getEntityTypeId public function Gets the entity type ID. 1
EntityStorageInterface::getQuery public function Gets an entity query instance. 1
EntityStorageInterface::hasData public function Determines if the storage contains any data. 1
EntityStorageInterface::load public function Loads one entity. 1
EntityStorageInterface::loadByProperties public function Load entities by their property values. 1
EntityStorageInterface::loadMultiple public function Loads one or more entities. 1
EntityStorageInterface::loadRevision public function Load a specific entity revision. 4
EntityStorageInterface::loadUnchanged public function Loads an unchanged entity from the database. 1
EntityStorageInterface::resetCache public function Resets the internal entity cache. 1
EntityStorageInterface::restore public function Restores a previously saved entity. 1
EntityStorageInterface::save public function Saves the entity permanently. 1
FieldableEntityStorageInterface::countFieldData public function Determines the number of entities with values for a given field. 2
FieldableEntityStorageInterface::finalizePurge public function Performs final cleanup after all data of a field has been purged. 1
FieldableEntityStorageInterface::purgeFieldData public function Purges a batch of field data. 1
FieldDefinitionListenerInterface::onFieldDefinitionCreate public function Reacts to the creation of a field. 2
FieldDefinitionListenerInterface::onFieldDefinitionDelete public function Reacts to the deletion of a field. 2
FieldDefinitionListenerInterface::onFieldDefinitionUpdate public function Reacts to the update of a field. 2
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate public function Reacts to the creation of a field storage definition. 3
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete public function Reacts to the deletion of a field storage definition. 3
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate public function Reacts to the update of a field storage definition. 3