You are here

public static function LazyForm::create in Lazy-load 8.3

Instantiates a new instance of this class.

Parameters

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

Return value

\Drupal\Core\Form\ConfigFormBase|\Drupal\Core\Form\FormBase|static A static class.

Overrides ConfigFormBase::create

File

src/Form/LazyForm.php, line 81

Class

LazyForm
Configure Lazy settings for this site.

Namespace

Drupal\lazy\Form

Code

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