/**
  * Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
  */
 public function __construct(ClassResolverInterface $class_resolver, ControllerResolverInterface $controller_resolver, ContainerInterface $container, $class, FormBuilderInterface $form_builder)
 {
     parent::__construct($controller_resolver, $form_builder);
     $this->classResolver = $class_resolver;
     $this->container = $container;
     $this->formDefinition = $class;
 }
 /**
  * Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
  *
  * @param \Drupal\Core\Controller\ControllerResolverInterface $resolver
  *   The controller resolver.
  * @param \Drupal\Core\Form\FormBuilderInterface $form_builder
  *   The form builder.
  * @param \Drupal\Core\Entity\EntityManagerInterface $manager
  *   The entity manager.
  */
 public function __construct(ControllerResolverInterface $resolver, FormBuilderInterface $form_builder, EntityManagerInterface $manager)
 {
     parent::__construct($resolver, $form_builder);
     $this->entityManager = $manager;
 }
Пример #3
0
 /**
  * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver
  *   The controller resolver.
  * @param \Drupal\Core\Form\FormBuilderInterface $form_builder
  *   The form builder.
  * @param \Drupal\ctools\Wizard\WizardFactoryInterface $wizard_factory
  *   The wizard factory.
  */
 public function __construct(ControllerResolverInterface $controller_resolver, FormBuilderInterface $form_builder, WizardFactoryInterface $wizard_factory)
 {
     parent::__construct($controller_resolver, $form_builder);
     $this->wizardFactory = $wizard_factory;
 }
Пример #4
0
 /**
  * Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
  *
  * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver
  *   The controller resolver.
  * @param \Drupal\Core\Form\FormBuilderInterface $form_builder
  *   The form builder.
  * @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
  *   The class resolver.
  */
 public function __construct(ControllerResolverInterface $controller_resolver, FormBuilderInterface $form_builder, ClassResolverInterface $class_resolver)
 {
     parent::__construct($controller_resolver, $form_builder);
     $this->classResolver = $class_resolver;
 }