You are here

public function ProductAttributeMapper::getAddRoute in Commerce Core 8.2

Returns the route object for a translation add form route.

Return value

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

Overrides ConfigNamesMapper::getAddRoute

File

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

Class

ProductAttributeMapper
Provides a configuration mapper for product attributes.

Namespace

Drupal\commerce_product\ConfigTranslation

Code

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