EntityModerationRouteProvider
class EntityModerationRouteProvider implements EntityRouteProviderInterface, EntityHandlerInterface (View source)
| internal |
Dynamic route provider for the Content moderation module.
Provides the following routes:
- The latest version tab, showing the latest revision of an entity, not the default one.
Properties
| protected EntityFieldManagerInterface | $entityFieldManager | The entity manager. |
Methods
Instantiates a new instance of this entity handler.
Gets the type of the ID key for a given entity type.
Details
__construct(EntityFieldManagerInterface $entity_manager)
Constructs a new DefaultHtmlRouteProvider.
static EntityHandlerInterface
createInstance(ContainerInterface $container, EntityTypeInterface $entity_type)
Instantiates a new instance of this entity handler.
This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton.
RouteCollection|Route[]
getRoutes(EntityTypeInterface $entity_type)
Provides routes for entities.
protected Route|null
getLatestVersionRoute(EntityTypeInterface $entity_type)
Gets the moderation-form route.
protected string|null
getEntityTypeIdKeyType(EntityTypeInterface $entity_type)
Gets the type of the ID key for a given entity type.