You are here

interface CropStorageInterface in Crop API 8

Same name and namespace in other branches
  1. 8.2 src/CropStorageInterface.php \Drupal\crop\CropStorageInterface

Provides an interface defining an crop storage controller.

Hierarchy

Expanded class hierarchy of CropStorageInterface

All classes that implement CropStorageInterface

1 file declares its use of CropStorageInterface
CropEffect.php in src/Plugin/ImageEffect/CropEffect.php

File

src/CropStorageInterface.php, line 12

Namespace

Drupal\crop
View source
interface CropStorageInterface extends SqlEntityStorageInterface, DynamicallyFieldableEntityStorageSchemaInterface, EntityBundleListenerInterface {

  /**
   * Retrieve crop ID based on image URI and crop type.
   *
   * @param string $uri
   *   URI of the image.
   * @param string $type
   *   Crop type.
   *
   * @return \Drupal\crop\CropInterface|null
   *   A Crop object or NULL if nothing matches the search parameters.
   */
  public function getCrop($uri, $type);

}

Members

Namesort descending Modifiers Type Description Overrides
CropStorageInterface::getCrop public function Retrieve crop ID based on image URI and crop type. 1
DynamicallyFieldableEntityStorageSchemaInterface::finalizePurge public function Performs final cleanup after all data of a field has been purged. 1
DynamicallyFieldableEntityStorageSchemaInterface::requiresFieldDataMigration public function Checks if existing data would be lost if the schema changes were applied. 2
DynamicallyFieldableEntityStorageSchemaInterface::requiresFieldStorageSchemaChanges public function Checks if the changes to the storage definition requires schema changes. 2
EntityBundleListenerInterface::onBundleCreate public function Reacts to a bundle being created. 3
EntityBundleListenerInterface::onBundleDelete public function Reacts to a bundle being deleted. 3
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, static entity cache. 1
EntityStorageInterface::restore public function Restores a previously saved entity. 1
EntityStorageInterface::save public function Saves the entity permanently. 1
EntityStorageSchemaInterface::requiresEntityDataMigration public function Checks if existing data would be lost if the schema changes were applied. 2
EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges public function Checks if the changes to the entity type requires storage schema changes. 2
EntityTypeListenerInterface::onEntityTypeCreate public function Reacts to the creation of the entity type. 4
EntityTypeListenerInterface::onEntityTypeDelete public function Reacts to the deletion of the entity type. 4
EntityTypeListenerInterface::onEntityTypeUpdate public function Reacts to the update of the entity type. 4
EntityTypeListenerInterface::onFieldableEntityTypeCreate public function Reacts to the creation of the fieldable entity type. 4
EntityTypeListenerInterface::onFieldableEntityTypeUpdate public function Reacts to the update of a fieldable entity type. 4
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate public function Reacts to the creation of a field storage definition. 4
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete public function Reacts to the deletion of a field storage definition. 4
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate public function Reacts to the update of a field storage definition. 4
SqlEntityStorageInterface::getTableMapping public function Gets a table mapping for the entity's SQL tables. 1