ViewUI::postDelete

public static ViewUI::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 EntityInterface::postDelete File core/modules/views_ui/src/ViewUI.php, line 1123 Class ViewUI Stores UI r

ViewUI::postLoad

public static ViewUI::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 EntityInterface::postLoad File core/modules/views_ui/src/ViewUI.php, line 1129 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public static function postLoad(EntityStorage

ViewUI::postSave

public ViewUI::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 $up

ViewUI::preCreate

public static ViewUI::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 EntityInterface::preCreate File core/modules/views_ui/src/ViewUI.php, line 1104 Class ViewUI

ViewUI::preDelete

public static ViewUI::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 EntityInterface::preDelete File core/modules/views_ui/src/ViewUI.php, line 1117 Class ViewUI S

ViewUI::preSave

public ViewUI::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 automat

ViewUI::referencedEntities

public ViewUI::referencedEntities() Gets a list of entities referenced by this entity. Return value \Drupal\Core\Entity\EntityInterface[] An array of entities. Overrides EntityInterface::referencedEntities File core/modules/views_ui/src/ViewUI.php, line 1163 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function referencedEntities() { return $this->storage->referencedEntities(); }

ViewUI::renderPreview

public ViewUI::renderPreview($display_id, $args = array()) File core/modules/views_ui/src/ViewUI.php, line 515 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function renderPreview($display_id, $args = array()) { // Save the current path so it can be restored before returning from this function. $request_stack = \Drupal::requestStack(); $current_request = $request_stack->getCurrentRequest(); $executable = $this->getExecutable();

ViewUI::save

public ViewUI::save() Saves an entity permanently. When saving existing entities, the entity is assumed to be complete, partial updates of entities are not supported. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown. Overrides EntityInterface::save File core/modules/views_ui/src/ViewUI.php, line 985 Class ViewUI Stores UI related temporary settings. Name

ViewUI::set

public ViewUI::set($property_name, $value, $notify = TRUE) Sets the value of a property. Parameters string $property_name: The name of the property that should be set. mixed $value: The value the property should be set to. Return value $this Overrides ConfigEntityInterface::set File core/modules/views_ui/src/ViewUI.php, line 170 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function set($property_name, $value, $notify = TRUE) { if (propert