You are here

public function PathautoSettingsForm::__construct in Pathauto 8

Constructs a PathautoSettingsForm.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Defines the configuration object factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Manages entity type plugin definitions.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Manages the discovery of entity fields.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Manage drupal modules.

\Drupal\pathauto\AliasCleanerInterface $pathauto_alias_cleaner: Provides an alias cleaner.

\Drupal\pathauto\AliasStorageHelperInterface $pathauto_alias_storage_helper: Provides helper methods for accessing alias storage.

\Drupal\pathauto\AliasTypeManager $alias_type_manager: Manages pathauto alias type plugins.

Overrides ConfigFormBase::__construct

File

src/Form/PathautoSettingsForm.php, line 85

Class

PathautoSettingsForm
Configure pathauto settings for this site.

Namespace

Drupal\pathauto\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler, AliasCleanerInterface $pathauto_alias_cleaner, AliasStorageHelperInterface $pathauto_alias_storage_helper, AliasTypeManager $alias_type_manager) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->moduleHandler = $module_handler;
  $this->aliasCleaner = $pathauto_alias_cleaner;
  $this->aliasStorageHelper = $pathauto_alias_storage_helper;
  $this->aliasTypeManager = $alias_type_manager;
}