You are here

public function PopupMessageSettingsForm::__construct in Popup message 8

PopupMessageSettingsForm constructor.

Parameters

\Drupal\Core\Asset\CssCollectionOptimizer $cssOptimizer: Load service css collection optimizer.

\Drupal\Core\Asset\JsCollectionOptimizer $jsOptimizer: Load service js collection optimizer.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: Entity repository.

Overrides ConfigFormBase::__construct

File

src/Form/PopupMessageSettingsForm.php, line 54

Class

PopupMessageSettingsForm
Class PopupMessageSettingsForm.

Namespace

Drupal\popup_message\Form

Code

public function __construct(CssCollectionOptimizer $cssOptimizer, JsCollectionOptimizer $jsOptimizer, EntityRepositoryInterface $entityRepository) {
  $this->cssOptimizer = $cssOptimizer;
  $this->jsOptimizer = $jsOptimizer;
  $this->entityRepository = $entityRepository;
}