class ViewsRevisionsUI in Config Entity Revisions 8
Same name and namespace in other branches
- 1.x modules/views_revisions/src/ViewsRevisionsUI.php \Drupal\views_revisions\ViewsRevisionsUI
Hierarchy
- class \Drupal\views_ui\ViewUI implements ViewEntityInterface
- class \Drupal\views_revisions\ViewsRevisionsUI uses ViewsRevisionsConfigTrait
Expanded class hierarchy of ViewsRevisionsUI
2 files declare their use of ViewsRevisionsUI
- ViewsRevisionsConverter.php in modules/
views_revisions/ src/ ParamConverter/ ViewsRevisionsConverter.php - views_revisions.module in modules/
views_revisions/ views_revisions.module
File
- modules/
views_revisions/ src/ ViewsRevisionsUI.php, line 10
Namespace
Drupal\views_revisionsView source
class ViewsRevisionsUI extends ViewUI {
use ViewsRevisionsConfigTrait, ConfigEntityRevisionsConfigTrait;
/**
* Sets a cached view object in the shared tempstore.
*/
public function cacheSet() {
if ($this
->isLocked()) {
\Drupal::messenger()
->addError('Changes cannot be made to a locked view.');
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ConfigEntityRevisionsStorageTrait:: |
public | function | ||
ViewsRevisionsConfigTrait:: |
private | property | ||
ViewsRevisionsConfigTrait:: |
public | function | Get the entity that actually has revisions. | |
ViewsRevisionsUI:: |
public | function |
Sets a cached view object in the shared tempstore. Overrides ViewUI:: |
|
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 |