You are here

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

Gets the ad targeting.

Return value

array[] Each value is a array containing two keys: 'target' and 'value'. The 'target' value is a string and the 'value' value is an array of strings.

File

src/View/TagView.php, line 238
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 getTargeting() {
  if (is_null($this->targeting)) {
    $this->targeting = self::formatTargeting($this->tag
      ->targeting(), $this->token, $this->moduleHandler, $this);
  }
  return $this->targeting;
}