function EntityDisplayModeBase::preDelete
Overrides ConfigEntityBase::preDelete
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityDisplayModeBase.php, line 112
Class
- EntityDisplayModeBase
- Base class for config entity types with settings for form and view modes.
Namespace
Drupal\Core\EntityCode
public static function preDelete(EntityStorageInterface $storage, array $entities) {
parent::preDelete($storage, $entities);
\Drupal::service('entity_field.manager')->clearCachedFieldDefinitions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.