You are here

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

The gets the slug.

Return value

string The slug.

File

src/View/TagView.php, line 112
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 getSlug() {
  $slug = $this->tag
    ->slug();
  if (empty($slug)) {
    $slug = $this->globalSettings
      ->get('default_slug');
  }
  if ($slug == '<none>') {
    $slug = "";
  }
  return $slug;
}