You are here

public function ContentBuilder::__construct in Open Social 8.9

Same name and namespace in other branches
  1. 8.6 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  2. 8.7 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  3. 8.8 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  4. 10.3.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  5. 10.0.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  6. 10.1.x modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  7. 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.

File

modules/social_features/social_content_block/src/ContentBuilder.php, line 70

Class

ContentBuilder
Class ContentBuilder.

Namespace

Drupal\social_content_block

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $connection, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ContentBlockManagerInterface $content_block_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->connection = $connection;
  $this->moduleHandler = $module_handler;
  $this
    ->setStringTranslation($string_translation);
  $this->contentBlockManager = $content_block_manager;
}