Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityDisplayModeBase.php

function EntityDisplayModeBase::preSave

Overrides ConfigEntityBase::preSave

File

core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 101

Class

EntityDisplayModeBase
Base class for config entity types with settings for form and view modes.

Namespace

Drupal\Core\Entity

Code

public function preSave(EntityStorageInterface $storage) {
    parent::preSave($storage);
    \Drupal::service('entity_field.manager')->clearCachedFieldDefinitions();
}
RSS feed
Powered by Drupal