public function ContentBuilder::__construct in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 8.6 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 8.7 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 8.8 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 10.0.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 10.1.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
- 10.2.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
ContentBuilder constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Database\Connection $connection: The current active database's master connection.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.
\Drupal\social_content_block\ContentBlockManagerInterface $content_block_manager: The content block manager.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
File
- modules/
social_features/ social_content_block/ src/ ContentBuilder.php, line 81
Class
- ContentBuilder
- Class ContentBuilder.
Namespace
Drupal\social_content_blockCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $connection, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ContentBlockManagerInterface $content_block_manager, EntityRepositoryInterface $entity_repository) {
$this->entityTypeManager = $entity_type_manager;
$this->connection = $connection;
$this->moduleHandler = $module_handler;
$this
->setStringTranslation($string_translation);
$this->contentBlockManager = $content_block_manager;
$this->entityRepository = $entity_repository;
}