entityManager = $manager; } /** * {@inheritdoc} */ protected function getFormArgument(RouteMatchInterface $route_match) { $form_arg = $route_match->getRouteObject()->getDefault('_entity_wizard'); list($entity_type_id, $operation) = explode('.', $form_arg); $definition = $this->entityManager->getDefinition($entity_type_id); $handlers = $definition->getHandlerClasses(); if (empty($handlers['wizard'][$operation])) { throw new \Exception(sprintf('Unsupported wizard operation %s', $operation)); } return $handlers['wizard'][$operation]; } }