You are here

public function PagererPresetPaneResetForm::__construct in Pagerer 8

Same name and namespace in other branches
  1. 8.2 src/Form/PagererPresetPaneResetForm.php \Drupal\pagerer\Form\PagererPresetPaneResetForm::__construct()

Constructs the form object.

Parameters

\Drupal\pagerer\PagererFactory $pagerer_factory: The Pagerer factory.

\Drupal\pagerer\Plugin\PagererStyleManager $style_manager: The plugin manager for Pagerer style plugins.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/Form/PagererPresetPaneResetForm.php, line 62

Class

PagererPresetPaneResetForm
Form handler for Pagerer presets' panes.

Namespace

Drupal\pagerer\Form

Code

public function __construct(PagererFactory $pagerer_factory, PagererStyleManager $style_manager, MessengerInterface $messenger) {
  $this->pagererFactory = $pagerer_factory;
  $this->styleManager = $style_manager;
  $this->messenger = $messenger;
  $this->paneLabels = [
    'left' => $this
      ->t('left'),
    'center' => $this
      ->t('center'),
    'right' => $this
      ->t('right'),
  ];
}