public static function ViewsForm::create in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::create()
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
Overrides ContainerInjectionInterface::create
1 call to ViewsForm::create()
- DisplayPluginBase::elementPreRender in core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php - #pre_render callback for view display rendering.
File
- core/
modules/ views/ src/ Form/ ViewsForm.php, line 93 - Contains \Drupal\views\Form\ViewsForm.
Class
- ViewsForm
- Provides a base class for single- or multistep view forms.
Namespace
Drupal\views\FormCode
public static function create(ContainerInterface $container, $view_id = NULL, $view_display_id = NULL) {
return new static($container
->get('class_resolver'), $container
->get('url_generator'), $container
->get('request_stack'), $view_id, $view_display_id);
}