You are here

public function PdfLinksConfigurationForm::__construct in Printer and PDF versions for Drupal 8+ 2.x

Same name and namespace in other branches
  1. 8 src/Form/PdfLinksConfigurationForm.php \Drupal\printable\Form\PdfLinksConfigurationForm::__construct()

Constructs a new form object.

Parameters

\Drupal\printable\PrintableEntityManagerInterface $printable_entity_manager: The printable entity manager.

\Drupal\printable\PrintableFormatPluginManager $printable_format_manager: The printable format plugin manager.

\Drupal\Core\Config\ConfigFactory $configFactory: Defines the configuration object factory.

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

File

src/Form/PdfLinksConfigurationForm.php, line 51

Class

PdfLinksConfigurationForm
Provides shared configuration form for all printable formats.

Namespace

Drupal\printable\Form

Code

public function __construct(PrintableEntityManagerInterface $printable_entity_manager, PrintableFormatPluginManager $printable_format_manager, ConfigFactory $configFactory, MessengerInterface $messenger) {
  $this->printableEntityManager = $printable_entity_manager;
  $this->printableFormatManager = $printable_format_manager;
  $this->configFactory = $configFactory;
  $this->messenger = $messenger;
}