View::postLoad

public static View::postLoad(EntityStorageInterface $storage, array &$entities)

Acts on loaded entities.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.

Overrides Entity::postLoad

File

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

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();
  }
}
doc_Drupal
2016-10-29 09:53:42
Comments
Leave a Comment

Please login to continue.