public static function View::postLoad in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postLoad()
- 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::postLoad()
Acts on loaded entities.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postLoad
File
- core/
modules/ views/ src/ Entity/ View.php, line 363
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\EntityCode
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
parent::postLoad($storage, $entities);
foreach ($entities as $entity) {
$entity
->mergeDefaultDisplaysOptions();
}
}