You are here

public static function CustomerrorSettingsForm::create in Customerror 8

This method lets us inject the services this class needs.

Only inject services that are actually needed. Which services are needed will vary by the controller.

Overrides ConfigFormBase::create

File

src/Form/CustomerrorSettingsForm.php, line 34

Class

CustomerrorSettingsForm
Provides a form controller for module settings.

Namespace

Drupal\customerror\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('config.factory'), $container
    ->get('path_alias.manager'));
}