protected function EntityViewModeStorageController::preDelete

Acts on entities before they are deleted.

Used before the entities are deleted and before invoking the delete hook.

Overrides ConfigStorageController::preDelete

File

drupal/core/modules/entity/lib/Drupal/entity/EntityViewModeStorageController.php, line 28
Contains \Drupal\entity\EntityViewModeStorageController.

Class

EntityViewModeStorageController
Defines the storage controller class for entity view modes.

Namespace

Drupal\entity

Code

protected function preDelete($view_modes) {
  entity_info_cache_clear();
}