You are here

protected function MetatagViewsController::prepareTagValue in Metatag 8

Massage the tag value.

Parameters

string $value: The meta tag to output.

Return value

string An imploded string for meta tags that are nested, ex. robots.

1 call to MetatagViewsController::prepareTagValue()
MetatagViewsController::buildDisplayDetailsTable in metatag_views/src/Controller/MetatagViewsController.php
Build the table with metatag values summary.

File

metatag_views/src/Controller/MetatagViewsController.php, line 218

Class

MetatagViewsController
Class MetatagViewsController.

Namespace

Drupal\metatag_views\Controller

Code

protected function prepareTagValue($value) {
  if (is_array($value)) {
    $value = implode(', ', array_filter($value));
  }
  return $value;
}