You are here

public function TagBlock::__construct in Doubleclick for Publishers (DFP) 8

Same name in this branch
  1. 8 src/Plugin/Derivative/TagBlock.php \Drupal\dfp\Plugin\Derivative\TagBlock::__construct()
  2. 8 src/Plugin/Block/TagBlock.php \Drupal\dfp\Plugin\Block\TagBlock::__construct()

Constructs a new BlockContentBlock.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

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

\Drupal\Core\Session\AccountInterface $account: The current user.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/TagBlock.php, line 67
Contains \Drupal\dfp\Plugin\Block\TagBlock.

Class

TagBlock
Defines a generic DFP Ad block type.

Namespace

Drupal\dfp\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, EntityTypeManagerInterface $entity_type_manager, AccountInterface $account) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityRepository = $entity_repository;
  $this->entityTypeManager = $entity_type_manager;
  $this->account = $account;
}