EntityResourcePostRouteSubscriber
class EntityResourcePostRouteSubscriber implements EventSubscriberInterface (View source)
Generates a 'create' route for an entity type if it has a REST POST route.
Properties
| protected EntityStorageInterface | $resourceConfigStorage | The REST resource config storage. |
Methods
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a new EntityResourcePostRouteSubscriber instance.
static array
getSubscribedEvents()
{@inheritdoc}
Details
__construct(EntityTypeManagerInterface $entity_type_manager)
Constructs a new EntityResourcePostRouteSubscriber instance.
onDynamicRouteEvent(RouteBuildEvent $event)
Provides routes on route rebuild time.
static array
getSubscribedEvents()
{@inheritdoc}