ContentModerationRouteSubscriber
class ContentModerationRouteSubscriber extends RouteSubscriberBase (View source)
| internal | There is ongoing discussion about how pending revisions should behave. The logic enabling pending revision support is likely to change once a decision is made. |
Subscriber for moderated revisionable entity forms.
Properties
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager. |
|
| protected ContentEntityTypeInterface[] | $moderatedEntityTypes | An associative array of moderated entity types keyed by ID. |
Methods
alterRoutes(RouteCollection $collection)
Alters existing routes for a specific collection.
static
getSubscribedEvents()
{@inheritdoc}
from
RouteSubscriberBase
__construct(EntityTypeManagerInterface $entity_type_manager)
ContentModerationRouteSubscriber constructor.
setLatestRevisionFlag(Route $route)
Ensure revisionable entities load the latest revision on entity forms.
getModeratedEntityTypes()
Returns the moderated entity types.
Details
protected
alterRoutes(RouteCollection $collection)
Alters existing routes for a specific collection.
static
getSubscribedEvents()
{@inheritdoc}
onAlterRoutes(RouteBuildEvent $event)
Delegates the route altering to self::alterRoutes().
__construct(EntityTypeManagerInterface $entity_type_manager)
ContentModerationRouteSubscriber constructor.
protected
setLatestRevisionFlag(Route $route)
Ensure revisionable entities load the latest revision on entity forms.
protected ContentEntityTypeInterface[]
getModeratedEntityTypes()
Returns the moderated entity types.