interface ConfigEntityRevisionsControllerInterface in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/ConfigEntityRevisionsControllerInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerInterface
- 1.x src/ConfigEntityRevisionsControllerInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerInterface
ConfigEntityRevisionsController interface.
Hierarchy
- interface \Drupal\Core\DependencyInjection\ContainerInjectionInterface
- interface \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerInterface
Expanded class hierarchy of ConfigEntityRevisionsControllerInterface
All classes that implement ConfigEntityRevisionsControllerInterface
5 files declare their use of ConfigEntityRevisionsControllerInterface
- ConfigEntityRevisionsDeleteFormBase.php in src/
ConfigEntityRevisionsDeleteFormBase.php - ViewsRevisionsController.php in modules/
views_revisions/ src/ Controller/ ViewsRevisionsController.php - views_revisions.module in modules/
views_revisions/ views_revisions.module - WebformRevisionsController.php in modules/
webform_revisions/ src/ Controller/ WebformRevisionsController.php - webform_revisions.module in modules/
webform_revisions/ webform_revisions.module
File
- src/
ConfigEntityRevisionsControllerInterface.php, line 21
Namespace
Drupal\config_entity_revisionsView source
interface ConfigEntityRevisionsControllerInterface extends ContainerInjectionInterface {
/**
* Constructs a ConfigEntityRevisionsController object.
*
* @param ContainerInterface $container
* The container interface object.
* @param DateFormatterInterface $date_formatter
* The date formatter service.
* @param RendererInterface $renderer
* The renderer service.
* @param ImmutableConfig $config
* The configuration service.
* @param DiffEntityComparison $entity_comparison
* The diff entity comparison service.
* @param EntityTypeManager $entity_type_manager
* The entity type manager.
* @param AccountProxyInterface $current_user
* The current user.
* @param Serializer $serialiser
* The serialiser service.
* @param Connection $connection
* The database connection.
*/
public function __construct(ContainerInterface $container, DateFormatterInterface $date_formatter, RendererInterface $renderer, ImmutableConfig $config, DiffEntityComparison $entity_comparison, EntityTypeManager $entity_type_manager, AccountProxyInterface $current_user, Serializer $serialiser, Connection $connection);
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container);
/**
* Create an initial revision record.
*
* @param ConfigEntityRevisionsInterface $config_entity
* The configuration entity.
*
* @return ContentEntityInterface
* The content entity created.
*/
public function createInitialRevision(ConfigEntityRevisionsInterface $config_entity);
/**
* Create revision when a new config entity version is saved.
*
* @param ConfigEntityRevisionsInterface $config_entity
* The configuration entity.
*/
public function createUpdateRevision(ConfigEntityRevisionsInterface $config_entity);
/**
* Delete revisions when a config entity is deleted.
*
* @param ConfigEntityRevisionsInterface $config_entity
* The configuration entity being deleted.
*/
public function deleteRevisions(ConfigEntityRevisionsInterface $config_entity);
/**
* Default implementation providing a title for a rendered revision.
*
* @param ConfigEntityInterface $config_entity
* The configuration entity being displayed.
*
* @return string
* The resulting title.
*/
public function revisionShowTitle(ConfigEntityInterface $config_entity);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityRevisionsControllerInterface:: |
public static | function |
Instantiates a new instance of this class. Overrides ContainerInjectionInterface:: |
|
ConfigEntityRevisionsControllerInterface:: |
public | function | Create an initial revision record. | 1 |
ConfigEntityRevisionsControllerInterface:: |
public | function | Create revision when a new config entity version is saved. | 1 |
ConfigEntityRevisionsControllerInterface:: |
public | function | Delete revisions when a config entity is deleted. | 1 |
ConfigEntityRevisionsControllerInterface:: |
public | function | Default implementation providing a title for a rendered revision. | 2 |
ConfigEntityRevisionsControllerInterface:: |
public | function | Constructs a ConfigEntityRevisionsController object. | 1 |