View::isInstallable

public View::isInstallable() Checks whether this entity is installable. For example, a default view might not be installable if the base table doesn't exist. @retun bool TRUE if the entity is installable, FALSE otherwise. Overrides ConfigEntityBase::isInstallable File core/modules/views/src/Entity/View.php, line 445 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function isInstallable() { $table_definition = \Drupal::service('views.vie

View::label

public View::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides Entity::label File core/modules/views/src/Entity/View.php, line 141 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function label() { if (!$label = $this->get('label')) { $label = $this->id(); } return $label; }

View::mergeDefaultDisplaysOptions

public View::mergeDefaultDisplaysOptions() Add defaults to the display options. Overrides ViewEntityInterface::mergeDefaultDisplaysOptions File core/modules/views/src/Entity/View.php, line 426 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code public function mergeDefaultDisplaysOptions() { $displays = array(); foreach ($this->get('display') as $key => $options) { $options += array( 'display_options' => array(), 'displa

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

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::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::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::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::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::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