function ViewsForm::create

Same name in other branches
  1. 9 core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::create()
  2. 8.9.x core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::create()
  3. 11.x core/modules/views/src/Form/ViewsForm.php \Drupal\views\Form\ViewsForm::create()

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 98

Class

ViewsForm
Provides a base class for single- or multistep view forms.

Namespace

Drupal\views\Form

Code

public static function create(ContainerInterface $container, $view_id = NULL, $view_display_id = NULL, ?array $view_args = NULL) {
    return new static($container->get('class_resolver'), $container->get('url_generator'), $container->get('request_stack'), $view_id, $view_display_id, $view_args);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.