You are here

public function SettingsForm::__construct in Entity Print 8.2

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

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

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

\Drupal\entity_print\Plugin\EntityPrintPluginManagerInterface $plugin_manager: The plugin manager object.

\Drupal\entity_print\Plugin\ExportTypeManagerInterface $export_type_manager: The export type manager interface.

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The config storage.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 52

Class

SettingsForm
Defines a form that configures Entity Print settings.

Namespace

Drupal\entity_print\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityPrintPluginManagerInterface $plugin_manager, ExportTypeManagerInterface $export_type_manager, EntityStorageInterface $entity_storage) {
  parent::__construct($config_factory);
  $this->pluginManager = $plugin_manager;
  $this->exportTypeManager = $export_type_manager;
  $this->storage = $entity_storage;
}