ViewAccessControlHandler

Defines the access control handler for the view entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\views\ViewAccessControlHandler See also \Drupal\views\Entity\View File core/modules/views/src/ViewAccessControlHandler.php, line 15 Namespace Drupal\views Members Name Modifiers Type Description

View::__sleep

public View::__sleep() Overrides ConfigEntityBase::__sleep File core/modules/views/src/Entity/View.php, line 456 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function __sleep() { $keys = parent::__sleep(); unset($keys[array_search('executable', $keys)]); return $keys; }

View::preSave

public View::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field translations automatic

View::preRenderViewElement

public static View::preRenderViewElement($element) View element pre render callback. File core/modules/views/src/Element/View.php, line 35 Class View Provides a render element to display a view. Namespace Drupal\views\Element Code public static function preRenderViewElement($element) { // Allow specific Views displays to explicitly perform pre-rendering, for // those displays that need to be able to know the fully built render array. if (!empty($element['#pre_rendered'])) { r

View::preDelete

public static View::preDelete(EntityStorageInterface $storage, array $entities) Acts on entities before they are deleted and before hooks are invoked. Used before the entities are deleted and before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides ConfigEntityBase::preDelete File core/modules/views/src/Entity/View.php, line 397 Class View Def

View::preCreate

public static View::preCreate(EntityStorageInterface $storage, array &$values) Changes the values of an entity before it is created. Load defaults for example. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. mixed[] $values: An array of values to set, keyed by property name. If the entity type has bundles the bundle key has to be specified. Overrides Entity::preCreate File core/modules/views/src/Entity/View.php, line 367 Class View Defines a

View::postSave

public View::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool $upda

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(EntityStorageInt

View::postDelete

public static View::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/views/src/Entity/View.php, line 414 Class View Defines a View configur

View::postCreate

public View::postCreate(EntityStorageInterface $storage) Acts on a created entity before hooks are invoked. Used after the entity is created, but before saving the entity and before any of the presave hooks are invoked. See the Entity CRUD topic for more information. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. Overrides Entity::postCreate See also \Drupal\Core\Entity\EntityInterface::create() File core/modules/views/src/Entity/View.php, line 388