You are here

public function SharethisConfigurationForm::__construct in ShareThis 8.2

Constructs a \Drupal\user\SharethisConfigurationForm 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\sharethis\SharethisManagerInterface $sharethis_manager: The sharethis Manager.

Overrides ConfigFormBase::__construct

File

src/Form/SharethisConfigurationForm.php, line 73

Class

SharethisConfigurationForm
Provides a settings for sharethis module.

Namespace

Drupal\sharethis\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityDisplayRepositoryInterface $entity_display_repository, EntityFieldManagerInterface $entity_field_manager, SharethisManagerInterface $sharethis_manager) {
  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->sharethisManager = $sharethis_manager;
}