function View::postLoad

Same name in other branches
  1. 8.9.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postLoad()
  2. 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postLoad()
  3. 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postLoad()

Overrides EntityBase::postLoad

File

core/modules/views/src/Entity/View.php, line 363

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public static function postLoad(EntityStorageInterface $storage, array &$entities) {
    parent::postLoad($storage, $entities);
    foreach ($entities as $entity) {
        $entity->mergeDefaultDisplaysOptions();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.