ViewUI::getCacheMaxAge

public ViewUI::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge File core/modules/views_ui/src/ViewUI.php, line 1241 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function getCacheMaxAge() { return $this->storage->getCacheMaxAge(); }

ViewUI::getCacheContexts

public ViewUI::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache ID. Overri

ViewUI::delete

public ViewUI::delete() Deletes an entity permanently. Throws \Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown. Overrides EntityInterface::delete File core/modules/views_ui/src/ViewUI.php, line 978 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function delete() { return $this->storage->delete(); }

ViewUI::duplicateDisplayAsType

public ViewUI::duplicateDisplayAsType($old_display_id, $new_display_type) Duplicates an existing display into a new display type. For example clone to display a page display as a block display. Parameters string $old_display_id: The origin of the duplicated display. string $new_display_type: The display type of the new display. Return value string The display ID of the new display. Overrides ViewEntityInterface::duplicateDisplayAsType File core/modules/views_ui/src/ViewUI.php, line 1142 Cl

ViewUI::endQueryCapture

public ViewUI::endQueryCapture() Add the list of queries run during render to buildinfo. See also ViewUI::startQueryCapture() File core/modules/views_ui/src/ViewUI.php, line 509 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function endQueryCapture() { $queries = Database::getLog('views'); $this->additionalQueries = $queries; }

ViewUI::disable

public ViewUI::disable() Disables the configuration entity. Return value $this Overrides ConfigEntityInterface::disable File core/modules/views_ui/src/ViewUI.php, line 1062 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function disable() { return $this->storage->disable(); }

ViewUI::enable

public ViewUI::enable() Enables the configuration entity. Return value $this Overrides ConfigEntityInterface::enable File core/modules/views_ui/src/ViewUI.php, line 1055 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function enable() { return $this->storage->enable(); }

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

public ViewUI::createDuplicate() Creates a duplicate of the entity. Return value static A clone of $this with all identifiers unset, so saving it inserts a new entity into the storage system. Overrides EntityInterface::createDuplicate File core/modules/views_ui/src/ViewUI.php, line 950 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function createDuplicate() { return $this->storage->createDuplicate(); }

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(); }