interface DynamicallyFieldableEntityStorageInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
- interface \Drupal\Core\Entity\FieldableEntityStorageInterface; interface \Drupal\Core\Field\FieldStorageDefinitionListenerInterface; interface \Drupal\Core\Field\FieldDefinitionListenerInterface
- interface \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface
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 - Contains \Drupal\Tests\Core\Field\FieldDefinitionListenerTest.
File
- core/
lib/ Drupal/ Core/ Entity/ DynamicallyFieldableEntityStorageInterface.php, line 24 - Contains \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface.
Namespace
Drupal\Core\EntityView source
interface DynamicallyFieldableEntityStorageInterface extends FieldableEntityStorageInterface, FieldStorageDefinitionListenerInterface, FieldDefinitionListenerInterface {
/**
* Determines if the storage contains any data.
*
* @return bool
* TRUE if the storage contains data, FALSE if not.
*/
public function hasData();
/**
* Purges a batch of field data.
*
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The deleted field whose data is being purged.
* @param $batch_size
* The maximum number of field data records to purge before returning,
* relating to the count of field data records returned by
* \Drupal\Core\Entity\FieldableEntityStorageInterface::countFieldData().
*
* @return int
* The number of field data records that have been purged.
*/
public function purgeFieldData(FieldDefinitionInterface $field_definition, $batch_size);
/**
* Performs final cleanup after all data of a field has been purged.
*
* @param \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition
* The field being purged.
*/
public function finalizePurge(FieldStorageDefinitionInterface $storage_definition);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DynamicallyFieldableEntityStorageInterface:: |
public | function | Performs final cleanup after all data of a field has been purged. | 1 |
DynamicallyFieldableEntityStorageInterface:: |
public | function | Determines if the storage contains any data. | 1 |
DynamicallyFieldableEntityStorageInterface:: |
public | function | Purges a batch of field data. | 1 |
EntityStorageInterface:: |
public | function | Constructs a new entity object, without permanently saving it. | 1 |
EntityStorageInterface:: |
public | function | Deletes permanently saved entities. | 1 |
EntityStorageInterface:: |
public | function | Delete a specific entity revision. | 3 |
EntityStorageInterface:: |
constant | Load the most recent version of an entity's field data. | ||
EntityStorageInterface:: |
constant | Load the version of an entity's field data specified in the entity. | ||
EntityStorageInterface:: |
public | function | Gets an aggregated query instance. | 1 |
EntityStorageInterface:: |
public | function | Gets the entity type definition. | 1 |
EntityStorageInterface:: |
public | function | Gets the entity type ID. | 1 |
EntityStorageInterface:: |
public | function | Gets an entity query instance. | 1 |
EntityStorageInterface:: |
public | function | Loads one entity. | 1 |
EntityStorageInterface:: |
public | function | Load entities by their property values. | 1 |
EntityStorageInterface:: |
public | function | Loads one or more entities. | 1 |
EntityStorageInterface:: |
public | function | Load a specific entity revision. | 3 |
EntityStorageInterface:: |
public | function | Loads an unchanged entity from the database. | 1 |
EntityStorageInterface:: |
public | function | Resets the internal, static entity cache. | 1 |
EntityStorageInterface:: |
public | function | Saves the entity permanently. | 1 |
FieldableEntityStorageInterface:: |
public | function | Determines the number of entities with values for a given field. | 2 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the creation of a field. | 3 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the deletion of a field. | 3 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the update of a field. | 3 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the creation of a field storage definition. | 4 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the deletion of a field storage definition. | 4 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the update of a field storage definition. | 4 |