You are here

public function PhotosAdminStructureForm::__construct in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Form/PhotosAdminStructureForm.php \Drupal\photos\Form\PhotosAdminStructureForm::__construct()

Constructs PhotosAdminSettingsForm.

Parameters

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

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

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

Overrides ConfigFormBase::__construct

File

src/Form/PhotosAdminStructureForm.php, line 50

Class

PhotosAdminStructureForm
Defines a form to configure maintenance settings for this site.

Namespace

Drupal\photos\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityDisplayRepositoryInterface $entity_display_repository, ModuleHandlerInterface $module_handler) {
  parent::__construct($config_factory);
  $this->entityDisplayRepository = $entity_display_repository;
  $this->moduleHandler = $module_handler;
}