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