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

public ViewUI::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 EntityInterface::postCreate See also \Drupal\Core\Entity\EntityInterface::create() File core/modules/views_ui/src/ViewUI.php,

ViewUI::onDependencyRemoval

public ViewUI::onDependencyRemoval(array $dependencies) Informs the entity that entities it depends on will be deleted. This method allows configuration entities to remove dependencies instead of being deleted themselves. Configuration entities can use this method to avoid being unnecessarily deleted during an extension uninstallation. For example, entity displays remove references to widgets and formatters if the plugin that supplies them depends on a module that is being uninstalled. If this

ViewUI::mergeDefaultDisplaysOptions

public ViewUI::mergeDefaultDisplaysOptions() Add defaults to the display options. Overrides ViewEntityInterface::mergeDefaultDisplaysOptions File core/modules/views_ui/src/ViewUI.php, line 1149 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function mergeDefaultDisplaysOptions() { $this->storage->mergeDefaultDisplaysOptions(); }

ViewUI::mergeCacheMaxAge

public ViewUI::mergeCacheMaxAge($max_age) Merges the maximum age (in seconds) with the existing maximum age. The max age will be set to the given value if it is lower than the existing value. Parameters int $max_age: The max age to associate. Return value $this Throws \InvalidArgumentException Thrown if a non-integer value is supplied. Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge File core/modules/views_ui/src/ViewUI.php, line 1333 Class ViewUI Stores UI related tem

ViewUI::loadMultiple

public static ViewUI::loadMultiple(array $ids = NULL) Loads one or more entities. Parameters array $ids: An array of entity IDs, or NULL to load all entities. Return value static[] An array of entity objects indexed by their IDs. Overrides EntityInterface::loadMultiple File core/modules/views_ui/src/ViewUI.php, line 964 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public static function loadMultiple(array $ids = NULL) { return View::loadMultiple

ViewUI::load

public static ViewUI::load($id) Loads an entity. Parameters mixed $id: The id of the entity to load. Return value static The entity object or NULL if there is no entity with the given ID. Overrides EntityInterface::load File core/modules/views_ui/src/ViewUI.php, line 957 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public static function load($id) { return View::load($id); }

ViewUI::language

public ViewUI::language() Gets the language of the entity. Return value \Drupal\Core\Language\LanguageInterface The language object. Overrides EntityInterface::language File core/modules/views_ui/src/ViewUI.php, line 1041 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function language() { return $this->storage->language(); }