You are here

protected function CropStorage::doPostSave in Crop API 8.2

Performs post save entity processing.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The saved entity.

bool $update: Specifies whether the entity is being updated or created.

Overrides ContentEntityStorageBase::doPostSave

File

src/CropStorage.php, line 26

Class

CropStorage
Defines the storage handler class for image crop storage.

Namespace

Drupal\crop

Code

protected function doPostSave(EntityInterface $entity, $update) {
  parent::doPostSave($entity, $update);

  // Saving a crop might affect the cached information, reset it.
  $this->cropsByUri = [];
}