public function SocialAlbumController::__construct in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::__construct()
- 10.0.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::__construct()
- 10.1.x modules/social_features/social_album/src/Controller/SocialAlbumController.php \Drupal\social_album\Controller\SocialAlbumController::__construct()
SocialAlbumController constructor.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.
\Drupal\Core\Database\Connection $database: The current active database's master connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.
File
- modules/
social_features/ social_album/ src/ Controller/ SocialAlbumController.php, line 49
Class
- SocialAlbumController
- Returns responses for Album routes.
Namespace
Drupal\social_album\ControllerCode
public function __construct(TranslationInterface $translation, Connection $database, EntityTypeManagerInterface $entity_type_manager, EntityFormBuilderInterface $entity_form_builder, AccountInterface $current_user, ConfigFactoryInterface $config_factory) {
$this
->setStringTranslation($translation);
$this->database = $database;
$this->entityTypeManager = $entity_type_manager;
$this->entityFormBuilder = $entity_form_builder;
$this->currentUser = $current_user;
$this->configFactory = $config_factory;
}