You are here

public function ProductAttributeMapper::getEditRoute in Commerce Core 8.2

Returns the route object for a translation edit form route.

Return value

\Symfony\Component\Routing\Route The route object for the translation page.

Overrides ConfigNamesMapper::getEditRoute

File

modules/product/src/ConfigTranslation/ProductAttributeMapper.php, line 24

Class

ProductAttributeMapper
Provides a configuration mapper for product attributes.

Namespace

Drupal\commerce_product\ConfigTranslation

Code

public function getEditRoute() {
  $route = parent::getEditRoute();
  $route
    ->setDefault('_form', '\\Drupal\\commerce_product\\Form\\ProductAttributeTranslationEditForm');
  return $route;
}