Defines a class for reacting to entity events.
Hierarchy
- class \Drupal\content_moderation\EntityOperations implements ContainerInjectionInterface
 
File
- core/modules/content_moderation/src/EntityOperations.php, line 18
 
Namespace
Drupal\content_moderation
Members
| Name | Modifiers | Type | Description | 
|---|---|---|---|
| EntityOperations::$entityTypeManager | protected | property | The Entity Type Manager service. | 
| EntityOperations::$formBuilder | protected | property | The Form Builder service. | 
| EntityOperations::$moderationInfo | protected | property | The Moderation Information service. | 
| EntityOperations::$tracker | protected | property | The Revision Tracker service. | 
| EntityOperations::create | public static | function | Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create | 
| EntityOperations::entityInsert | public | function | Hook bridge. | 
| EntityOperations::entityPresave | public | function | Acts on an entity and set published status based on the moderation state. | 
| EntityOperations::entityUpdate | public | function | Hook bridge. | 
| EntityOperations::entityView | public | function | Act on entities being assembled before rendering. | 
| EntityOperations::isDefaultRevisionPublished | protected | function | Check if the default revision for the given entity is published. | 
| EntityOperations::setLatestRevision | protected | function | Set the latest revision. | 
| EntityOperations::updateOrCreateFromEntity | protected | function | Creates or updates the moderation state of an entity. | 
| EntityOperations::__construct | public | function | Constructs a new EntityOperations object. | 
Please login to continue.