You are here

public function RedirectFix404Form::__construct in Redirect 8

Constructs a RedirectFix404Form.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\redirect_404\SqlRedirectNotFoundStorage $redirect_storage: The redirect storage.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date Formatter service.

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

File

modules/redirect_404/src/Form/RedirectFix404Form.php, line 62

Class

RedirectFix404Form
Provides a form that lists all 404 error paths and no redirect assigned yet.

Namespace

Drupal\redirect_404\Form

Code

public function __construct(LanguageManagerInterface $language_manager, SqlRedirectNotFoundStorage $redirect_storage, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entity_type_manager) {
  $this->languageManager = $language_manager;
  $this->redirectStorage = $redirect_storage;
  $this->dateFormatter = $date_formatter;
  $this->entityTypeManager = $entity_type_manager;
}