public function RedirectRepository::__construct in Redirect 8
Constructs a \Drupal\redirect\EventSubscriber\RedirectRequestSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity type manager.
\Drupal\Core\Database\Connection $connection: The database connection.
File
- src/
RedirectRepository.php, line 44
Class
Namespace
Drupal\redirectCode
public function __construct(EntityTypeManagerInterface $manager, Connection $connection, ConfigFactoryInterface $config_factory) {
$this->manager = $manager;
$this->connection = $connection;
$this->config = $config_factory
->get('redirect.settings');
}