class ViewRevisionsUI in Config Entity Revisions 8.2
Class ViewRevisionsUI.
@package Drupal\view_revisions
Hierarchy
- class \Drupal\views_ui\ViewUI implements ViewEntityInterface
- class \Drupal\view_revisions\ViewRevisionsUI implements ConfigEntityRevisionsConfigEntityContainerInterface
Expanded class hierarchy of ViewRevisionsUI
1 file declares its use of ViewRevisionsUI
- ViewRevisionsConverter.php in modules/
view_revisions/ src/ ParamConverter/ ViewRevisionsConverter.php
File
- modules/
view_revisions/ src/ ViewRevisionsUI.php, line 13
Namespace
Drupal\view_revisionsView source
class ViewRevisionsUI extends ViewUI implements ConfigEntityRevisionsConfigEntityContainerInterface {
/**
* Sets a cached view object in the shared tempstore.
*/
public function cacheSet() {
if ($this
->isLocked()) {
\Drupal::messenger()
->addMessage(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
->getExecutable();
if (isset($executable->current_display)) {
// Add the knowledge of the changed display, too.
$this->changed_display[$executable->current_display] = TRUE;
$executable->current_display = NULL;
}
// Unset handlers. We don't want to write these into the cache.
$executable->display_handler = NULL;
$executable->default_display = NULL;
$executable->query = NULL;
$executable->displayHandlers = NULL;
$revId = $this
->get('storage')
->get('loadedRevisionId');
$cacheId = $revId ? $this
->id() . '-' . $revId : $this
->id();
$this->storage->entityTypeManager = NULL;
$this->entityTypeManager = NULL;
\Drupal::service('tempstore.shared')
->get('views')
->set($cacheId, $this);
}
/**
* Get the revisioned entity (storage in this case).
*
* @return \Drupal\Core\Config\Entity\ConfigEntityBase
* The revisioned config entity.
*/
public function revisionedEntity() {
return $this
->get('storage');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewRevisionsUI:: |
public | function |
Sets a cached view object in the shared tempstore. Overrides ViewUI:: |
|
ViewRevisionsUI:: |
public | function |
Get the revisioned entity (storage in this case). Overrides ConfigEntityRevisionsConfigEntityContainerInterface:: |
|
ViewUI:: |
protected | property | Stores a list of database queries run beside the main one from views. | |
ViewUI:: |
public | property | If this view has been changed. | |
ViewUI:: |
public | property | Stores an array of displays that have been changed. | |
ViewUI:: |
public | property | Indicates if a view is currently being edited. | |
ViewUI:: |
public static | property | Contains an array of form keys and their respective classes. | |
ViewUI:: |
private | property | Whether the config is being created, updated or deleted through the import process. | |
ViewUI:: |
private | property | Whether the config is being deleted through the uninstall process. | |
ViewUI:: |
public | property | Is the view run in a context of the preview in the admin interface. | |
ViewUI:: |
private | property | If this view is locked for editing. | |
ViewUI:: |
public | property | ||
ViewUI:: |
public | property | How long the view takes to render in microseconds. | |
ViewUI:: |
public | property | Stores a stack of UI forms to display. | |
ViewUI:: |
protected | property | The View storage object. | |
ViewUI:: |
public | property | Stores options temporarily while editing. | |
ViewUI:: |
public | function |
Checks data value access. Overrides AccessibleInterface:: |
|
ViewUI:: |
public | function |
Adds a dependency on an object: merges its cacheability metadata. Overrides RefinableCacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
Adds cache contexts. Overrides RefinableCacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
Adds cache tags. Overrides RefinableCacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
Adds a new display handler to the view, automatically creating an ID. Overrides ViewEntityInterface:: |
|
ViewUI:: |
public | function | Add another form to the stack; clicking 'apply' will go to this form rather than closing the ajax popup. | |
ViewUI:: |
public | function |
Gets the bundle of the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Calculates dependencies and stores them in the dependency property. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public static | function |
Constructs a new entity object, without permanently saving it. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Creates a duplicate of the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Deletes an entity permanently. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Disables the configuration entity. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Duplicates an existing display into a new display type. Overrides ViewEntityInterface:: |
|
ViewUI:: |
public | function |
Enables the configuration entity. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function | Add the list of queries run during render to buildinfo. | |
ViewUI:: |
public | function |
Enforces an entity to be new. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Returns the value of a property. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
Returns the cache tags that should be used to invalidate caches. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the key that is used to store configuration dependencies. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the configuration dependency name. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the configuration target identifier for the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the configuration dependencies. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Retrieves a specific display's configuration by reference. Overrides ViewEntityInterface:: |
|
ViewUI:: |
public | function |
Gets the entity type definition. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the ID of the type of the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets an executable instance for this view. Overrides ViewEntityInterface:: |
|
ViewUI:: |
public | function | Get the user's current progress through the form stack. | |
ViewUI:: |
public | function | Gets the lock on this View. | |
ViewUI:: |
public | function |
Gets the original ID. Overrides EntityInterface:: |
|
ViewUI:: |
public | function | Return the was_defaulted, is_defaulted and revert state of a form. | |
ViewUI:: |
public | function | Provide a standard set of Apply/Cancel/OK buttons for the forms. Also provide a hidden op operator because the forms plugin doesn't seem to properly provide which button was clicked. | |
ViewUI:: |
public | function |
Gets the list of third parties that store information. Overrides ThirdPartySettingsInterface:: |
|
ViewUI:: |
public | function |
Gets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ViewUI:: |
public | function |
Gets all third-party settings of a given module. Overrides ThirdPartySettingsInterface:: |
|
ViewUI:: |
public | function |
Gets a typed data object for this entity object. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Indicates if a link template exists for a given key. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets whether on not the data is trusted. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Gets the identifier. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Checks whether this entity is installable. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function | Returns whether the current view is locked. | |
ViewUI:: |
public | function |
Determines whether the entity is new. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Returns whether this entity is being changed as part of a synchronization. Overrides SynchronizableInterface:: |
|
ViewUI:: |
public | function |
Returns whether this entity is being changed during the uninstall process. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Gets the label of the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the language of the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Deprecated way of generating a link to the entity. See toLink(). Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Loads an entity. Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Loads one or more entities. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Merges the maximum age (in seconds) with the existing maximum age. Overrides RefinableCacheableDependencyInterface:: |
|
ViewUI:: |
public | function |
Add defaults to the display options. Overrides ViewEntityInterface:: |
|
ViewUI:: |
public | function |
Informs the entity that entities it depends on will be deleted. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Acts on a created entity before hooks are invoked. Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Acts on deleted entities before the delete hook is invoked. Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Acts on loaded entities. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Acts on a saved entity before the insert or update hook is invoked. Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Changes the values of an entity before it is created. Overrides EntityInterface:: |
|
ViewUI:: |
public static | function |
Acts on entities before they are deleted and before hooks are invoked. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Acts on an entity before the presave hook is invoked. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets a list of entities referenced by this entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function | ||
ViewUI:: |
public | function |
Saves an entity permanently. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Sets the value of a property. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function | Sets a lock on this View. | |
ViewUI:: |
public | function |
Sets the original ID. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Sets the status of the configuration entity. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function |
Sets the status of the synchronization flag. Overrides SynchronizableInterface:: |
|
ViewUI:: |
public | function |
Sets the value of a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ViewUI:: |
public | function | ||
ViewUI:: |
public | function | Submit handler for cancel button | |
ViewUI:: |
public | function | Basic submit handler applicable to all 'standard' forms. | |
ViewUI:: |
public | function | Set up query capturing. | |
ViewUI:: |
public | function |
Returns whether the configuration entity is enabled. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function | Submit handler for adding new item(s) to a view. | |
ViewUI:: |
public | function |
Gets an array of all property values. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Generates the HTML for a link to this entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the URL object for the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Sets that the data should be trusted. Overrides ConfigEntityInterface:: |
|
ViewUI:: |
public | function | Unsets the lock on this View. | |
ViewUI:: |
public | function |
Unsets a third-party setting. Overrides ThirdPartySettingsInterface:: |
|
ViewUI:: |
public | function |
Gets a list of URI relationships supported by this entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the public URL for this entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the URL object for the entity. Overrides EntityInterface:: |
|
ViewUI:: |
public | function |
Gets the entity UUID (Universally Unique Identifier). Overrides EntityInterface:: |
|
ViewUI:: |
public | function | Passes through all unknown calls onto the storage object. | |
ViewUI:: |
public | function | Constructs a View UI object. | |
ViewUI:: |
public | function | ||
ViewUI:: |
public | function |