You are here

public function LazyForm::__construct in Lazy-load 8.3

Constructs a LazyForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\lazy\LazyInterface $lazy_load: The Lazy-load service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Condition\ConditionManager $condition_manager: The condition plugin manager.

Overrides ConfigFormBase::__construct

File

src/Form/LazyForm.php, line 65

Class

LazyForm
Configure Lazy settings for this site.

Namespace

Drupal\lazy\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, LazyInterface $lazy_load, ModuleHandlerInterface $module_handler, ConditionManager $condition_manager) {
  parent::__construct($config_factory);
  $this->lazyLoad = $lazy_load;
  $this->moduleHandler = $module_handler;
  $this->condition = $condition_manager
    ->createInstance('request_path');
}