diff -u b/core/modules/rest/src/EventSubscriber/EntityResourcePostRouteSubscriber.php b/core/modules/rest/src/EventSubscriber/EntityResourcePostRouteSubscriber.php --- b/core/modules/rest/src/EventSubscriber/EntityResourcePostRouteSubscriber.php +++ b/core/modules/rest/src/EventSubscriber/EntityResourcePostRouteSubscriber.php @@ -51,9 +51,9 @@ $entity_type_id = substr($plugin_id, 7); $rest_post_route_name = "rest.entity.$entity_type_id.POST"; if ($rest_post_route = $route_collection->get($rest_post_route_name)) { - // Create a route for the 'create' link relation type for this entity type - // that uses the same route definition as the REST 'POST' route which use - // that entity type. + // Create a route for the 'create' link relation type for this entity + // type that uses the same route definition as the REST 'POST' route + // which use that entity type. // @see \Drupal\Core\Entity\Entity::toUrl() $entity_create_route_name = "entity.$entity_type_id.create"; $route_collection->add($entity_create_route_name, $rest_post_route); diff -u b/core/modules/rest/src/PathProcessor/PathProcessorEntityResourceBC.php b/core/modules/rest/src/PathProcessor/PathProcessorEntityResourceBC.php --- b/core/modules/rest/src/PathProcessor/PathProcessorEntityResourceBC.php +++ b/core/modules/rest/src/PathProcessor/PathProcessorEntityResourceBC.php @@ -43,7 +43,7 @@ // default from \Drupal\rest\Plugin\rest\resource\EntityResource, i.e. // "/entity/{entity_type}" and the link template specified in a particular // entity type. The former is rewritten to the latter - // specific one if it exists) + // specific one if it exists. $entity_type = $this->entityTypeManager->getDefinition($entity_type_id); if ($entity_type->hasLinkTemplate('create')) { return $entity_type->getLinkTemplate('create');