You are here

public static function BaseValidatorForm::create in Advanced CSS/JS Aggregation 8.4

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 AdvaggFormBase::create

1 call to BaseValidatorForm::create()
CssW3Form::create in advagg_validator/src/Form/CssW3Form.php
Instantiates a new instance of this class.
1 method overrides BaseValidatorForm::create()
CssW3Form::create in advagg_validator/src/Form/CssW3Form.php
Instantiates a new instance of this class.

File

advagg_validator/src/Form/BaseValidatorForm.php, line 24

Class

BaseValidatorForm
Base form for all advagg validator options.

Namespace

Drupal\advagg_validator\Form

Code

public static function create(ContainerInterface $container) {

  /**
   * @var \Drupal\advagg_validator\Form\BaseValidatorForm
   */
  $instance = parent::create($container);
  $instance->streamWrapperManager = $container
    ->get('stream_wrapper_manager');
  return $instance;
}