You are here

public function SchemaDurationBase::output in Schema.org Metatag 8

Generate the HTML tag output for a meta tag.

Return value

array|string A render array or an empty string.

Overrides SchemaNameBase::output

File

src/Plugin/metatag/Tag/SchemaDurationBase.php, line 13

Class

SchemaDurationBase
Provides a plugin for the 'schema_duration_base' meta tag.

Namespace

Drupal\schema_metatag\Plugin\metatag\Tag

Code

public function output() {
  $element = parent::output();
  if (!empty($element)) {
    $input_value = $element['#attributes']['content'];
    $element['#attributes']['content'] = static::outputValue($input_value);
  }
  return $element;
}