public static function SearchSettingsForm::create

Instantiates a new instance of this controller.

This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this object should use.

Overrides SystemConfigFormBase::create

File

drupal/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.php, line 58
Contains \Drupal\search\Form\SearchSettingsForm.

Class

SearchSettingsForm
Configure search settings for this site.

Namespace

Drupal\search\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('config.factory')
    ->get('search.settings'), $container
    ->get('module_handler'), $container
    ->get('keyvalue')
    ->get('state'));
}