You are here

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

File

src/SchemaDurationBase.php, line 11

Class

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

Code

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