You are here

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

TagView constructor.

Parameters

\Drupal\dfp\Entity\TagInterface $tag: The DFP tag.

\Drupal\Core\Config\ImmutableConfig $global_settings: The DFP global configuration.

\Drupal\dfp\TokenInterface $token: The DFP token service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

src/View/TagView.php, line 99
Contains \Drupal\dfp\View\TagView.

Class

TagView
A value object to combine a DFP tag with global settings for display.

Namespace

Drupal\dfp\View

Code

public function __construct(TagInterface $tag, ImmutableConfig $global_settings, TokenInterface $token, ModuleHandlerInterface $module_handler) {
  $this->tag = $tag;
  $this->globalSettings = $global_settings;
  $this->token = $token;
  $this->moduleHandler = $module_handler;
}