You are here

public function ShareEverywhereConfigForm::__construct in Share Everywhere 8

Same name and namespace in other branches
  1. 2.x src/Form/ShareEverywhereConfigForm.php \Drupal\share_everywhere\Form\ShareEverywhereConfigForm::__construct()

Constructs a \Drupal\user\ShareEverywhereConfigForm object.

Parameters

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

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle information.

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field Manager.

\Drupal\Core\Path\PathValidator $path_validator: The path Validator.

\Drupal\Core\Cache\CacheBackendInterface $render_cache: The render cache.

Overrides ConfigFormBase::__construct

File

src/Form/ShareEverywhereConfigForm.php, line 81

Class

ShareEverywhereConfigForm
Provides a settings form for Share Everywhere module.

Namespace

Drupal\share_everywhere\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityDisplayRepositoryInterface $entity_display_repository, EntityFieldManagerInterface $entity_field_manager, PathValidator $path_validator, CacheBackendInterface $render_cache) {
  parent::__construct($config_factory);
  $this->moduleHandler = $module_handler;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->entityFieldManager = $entity_field_manager;
  $this->pathValidator = $path_validator;
  $this->renderCache = $render_cache;
}