classResolver = $class_resolver; } /** * {@inheritdoc} */ protected function getFormArgument(RouteMatchInterface $route_match) { return $route_match->getRouteObject()->getDefault('_form'); } /** * {@inheritdoc} */ protected function getFormObject(RouteMatchInterface $route_match, $form_arg) { return $this->classResolver->getInstanceFromDefinition($form_arg); } }