public function FaqController::__construct in Frequently Asked Questions 8
Parameters
\Drupal\Core\Database\Connection $database:
\Drupal\Core\Config\ConfigFactoryInterface $config:
\Drupal\Core\Render\RendererInterface $renderer:
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:
\Drupal\Core\Language\LanguageManagerInterface $languageManager:
\Drupal\Core\Utility\LinkGeneratorInterface $linkGenerator:
File
- src/
Controller/ FaqController.php, line 42
Class
- FaqController
- Controller routines for FAQ routes.
Namespace
Drupal\faq\ControllerCode
public function __construct(Connection $database, ConfigFactoryInterface $config, RendererInterface $renderer, EntityTypeManagerInterface $entityTypeManager, LanguageManagerInterface $languageManager, LinkGeneratorInterface $linkGenerator) {
$this->database = $database;
$this->config = $config;
$this->renderer = $renderer;
$this->entityTypeManager = $entityTypeManager;
$this->languageManager = $languageManager;
$this->linkGenerator = $linkGenerator;
}