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

public ViewUI::link($text = NULL, $rel = 'edit-form', array $options = []) Deprecated way of generating a link to the entity. See toLink(). Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value