You are here

public function MediaDirectoriesUiHelper::__construct in Media Directories 2.x

Same name and namespace in other branches
  1. 8 modules/media_directories_ui/src/MediaDirectoriesUiHelper.php \Drupal\media_directories_ui\MediaDirectoriesUiHelper::__construct()

Create an AdminToolbarToolsHelper object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

modules/media_directories_ui/src/MediaDirectoriesUiHelper.php, line 37

Class

MediaDirectoriesUiHelper
Media directories UI helper service.

Namespace

Drupal\media_directories_ui

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->settings = $config_factory
    ->get('media_directories_ui.settings');
}