ViewUI::cacheSet

public ViewUI::cacheSet() Sets a cached view object in the user tempstore. File core/modules/views_ui/src/ViewUI.php, line 857 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function cacheSet() { if ($this->isLocked()) { drupal_set_message(t('Changes cannot be made to a locked view.'), 'error'); return; } // Let any future object know that this view has changed. $this->changed = TRUE; $executable = $this->getExecuta

ViewUI::bundle

public ViewUI::bundle() Gets the bundle of the entity. Return value string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles. Overrides EntityInterface::bundle File core/modules/views_ui/src/ViewUI.php, line 936 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function bundle() { return $this->storage->bundle(); }

ViewUI::addFormToStack

public ViewUI::addFormToStack($key, $display_id, $type, $id = NULL, $top = FALSE, $rebuild_keys = FALSE) Add another form to the stack; clicking 'apply' will go to this form rather than closing the ajax popup. File core/modules/views_ui/src/ViewUI.php, line 379 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function addFormToStack($key, $display_id, $type, $id = NULL, $top = FALSE, $rebuild_keys = FALSE) { // Reset the cache of IDs. Drupal ra

ViewUI::addDisplay

public ViewUI::addDisplay($plugin_id = 'page', $title = NULL, $id = NULL) Adds a new display handler to the view, automatically creating an ID. Parameters string $plugin_id: (optional) The plugin type from the Views plugin annotation. Defaults to 'page'. string $title: (optional) The title of the display. Defaults to NULL. string $id: (optional) The ID to use, e.g., 'default', 'page_1', 'block_2'. Defaults to NULL. Return value string|bool The key to the display in $view->display, or FALSE

ViewUI::addCacheTags

public ViewUI::addCacheTags(array $cache_tags) Adds cache tags. Parameters string[] $cache_tags: The cache tags to be added. Return value $this Overrides RefinableCacheableDependencyInterface::addCacheTags File core/modules/views_ui/src/ViewUI.php, line 1347 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function addCacheTags(array $cache_tags) { return $this->storage->addCacheTags($cache_tags); }

ViewUI::addCacheContexts

public ViewUI::addCacheContexts(array $cache_contexts) Adds cache contexts. Parameters string[] $cache_contexts: The cache contexts to be added. Return value $this Overrides RefinableCacheableDependencyInterface::addCacheContexts File core/modules/views_ui/src/ViewUI.php, line 1326 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function addCacheContexts(array $cache_contexts) { return $this->storage->addCacheContexts($cache_contexts);

ViewUI::addCacheableDependency

public ViewUI::addCacheableDependency($other_object) Adds a dependency on an object: merges its cacheability metadata. Parameters \Drupal\Core\Cache\CacheableDependencyInterface|object $other_object: The dependency. If the object implements CacheableDependencyInterface, then its cacheability metadata will be used. Otherwise, the passed in object must be assumed to be uncacheable, so max-age 0 is set. Return value $this Overrides RefinableCacheableDependencyInterface::addCacheableDependency Se

ViewUI::access

public ViewUI::access($operation = 'view', AccountInterface $account = NULL, $return_as_object = FALSE) Checks data value access. Parameters string $operation: The operation to be performed. \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. bool $return_as_object: (optional) Defaults to FALSE. Return value bool|\Drupal\Core\Access\AccessResultInterface The access result. Returns a bool

ViewUI::$temporary_options

Stores options temporarily while editing. Type: array File core/modules/views_ui/src/ViewUI.php, line 71 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public $temporary_options;

ViewUI::$storage

The View storage object. Type: \Drupal\views\ViewEntityInterface File core/modules/views_ui/src/ViewUI.php, line 94 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code protected $storage;