You are here

public static function SchemaNameBase::processedTestValue in Schema.org Metatag 8

Provide a test output value for the input value.

Tags that return values in a different format than the input, like values that are exploded, should extend this method and return a valid value.

Value must be static so the test can retrieve the value without instantiating the class.

Parameters

mixed $items: The input value, either a string or an array.

Return value

mixed Return the correct output value.

Overrides SchemaMetatagTestTagInterface::processedTestValue

17 methods override SchemaNameBase::processedTestValue()
SchemaActionBase::processedTestValue in src/Plugin/metatag/Tag/SchemaActionBase.php
Provide a test output value for the input value.
SchemaAnswerBase::processedTestValue in src/Plugin/metatag/Tag/SchemaAnswerBase.php
Provide a test output value for the input value.
SchemaCountryBase::processedTestValue in src/Plugin/metatag/Tag/SchemaCountryBase.php
Provide a test output value for the input value.
SchemaCreativeWorkBase::processedTestValue in src/Plugin/metatag/Tag/SchemaCreativeWorkBase.php
Provide a test output value for the input value.
SchemaEntryPointBase::processedTestValue in src/Plugin/metatag/Tag/SchemaEntryPointBase.php
Provide a test output value for the input value.

... See full list

File

src/Plugin/metatag/Tag/SchemaNameBase.php, line 244

Class

SchemaNameBase
All Schema.org tags should extend this class.

Namespace

Drupal\schema_metatag\Plugin\metatag\Tag

Code

public static function processedTestValue($items) {
  return $items;
}