trait ViewsRevisionsConfigTrait in Config Entity Revisions 8
Same name and namespace in other branches
- 1.x modules/views_revisions/src/ViewsRevisionsConfigTrait.php \Drupal\views_revisions\ViewsRevisionsConfigTrait
Hierarchy
- trait \Drupal\views_revisions\ViewsRevisionsConfigTrait uses ConfigEntityRevisionsStorageTrait
4 files declare their use of ViewsRevisionsConfigTrait
- ViewsRevisions.php in modules/
views_revisions/ src/ Entity/ ViewsRevisions.php - ViewsRevisionsController.php in modules/
views_revisions/ src/ Controller/ ViewsRevisionsController.php - ViewsRevisionsConverter.php in modules/
views_revisions/ src/ ParamConverter/ ViewsRevisionsConverter.php - ViewsRevisionsUI.php in modules/
views_revisions/ src/ ViewsRevisionsUI.php
File
- modules/
views_revisions/ src/ ViewsRevisionsConfigTrait.php, line 8
Namespace
Drupal\views_revisionsView source
trait ViewsRevisionsConfigTrait {
use ConfigEntityRevisionsStorageTrait;
private $constants = [
'module_name' => 'views_revisions',
'config_entity_name' => 'view',
'revisions_entity_name' => 'ViewsRevisions',
'setting_name' => 'views_revisions_id',
'title' => 'Views',
'has_own_content' => FALSE,
'admin_permission' => 'administer views',
'has_canonical_url' => FALSE,
];
/**
* Get the entity that actually has revisions.
*/
public function revisioned_entity() {
return $this
->get('storage');
}
}
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. |