You are here

public function ContentHubSubscriberController::__construct in Acquia Content Hub 8

ContentHubSubscriberController constructor.

Parameters

\Drupal\core\Config\ConfigFactoryInterface $config_factory: The client manager.

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

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token_generator: The csrf token generator.

\Drupal\acquia_contenthub\EntityManager $entity_manager: The entity manager.

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

\Drupal\Core\State\StateInterface $state: The state key/value store.

File

acquia_contenthub_subscriber/src/Controller/ContentHubSubscriberController.php, line 85

Class

ContentHubSubscriberController
Controller for Content Hub Discovery page.

Namespace

Drupal\acquia_contenthub_subscriber\Controller

Code

public function __construct(ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, CsrfTokenGenerator $csrf_token_generator, EntityManager $entity_manager, EntityTypeManagerInterface $entity_type_manager, StateInterface $state) {
  $this->configFactory = $config_factory;
  $this->languageManager = $language_manager;
  $this->csrfTokenGenerator = $csrf_token_generator;
  $this->entityManager = $entity_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->state = $state;
}