You are here

public function ContentBuilder::__construct in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/src/ContentBuilder.php \Drupal\social_content_block\ContentBuilder::__construct()
  2. 8.6 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: Database Service Object.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

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

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) {
  $this->entityTypeManager = $entity_type_manager;
  $this->connection = $connection;
  $this->moduleHandler = $module_handler;
  $this
    ->setStringTranslation($string_translation);
}