You are here

protected function PriceListItemRouteProvider::getEditFormRoute in Commerce Pricelist 8.2

Gets the edit-form route.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Symfony\Component\Routing\Route|null The generated route, if available.

Overrides DefaultHtmlRouteProvider::getEditFormRoute

File

src/PriceListItemRouteProvider.php, line 56

Class

PriceListItemRouteProvider
Provides routes for the price list item entity.

Namespace

Drupal\commerce_pricelist

Code

protected function getEditFormRoute(EntityTypeInterface $entity_type) {
  $route = parent::getEditFormRoute($entity_type);
  $route
    ->setOption('parameters', [
    'commerce_pricelist' => [
      'type' => 'entity:commerce_pricelist',
    ],
  ]);
  return $route;
}