You are here

public static function SchemaNameBase::testValue in Schema.org Metatag 7

Provide a test input value for the property that will validate.

Tags like @type that contain values other than simple strings, for instance a list of allowed options, should extend this method and return a valid value.

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

Return value

mixed Return the test value, either a string or array, depending on the property.

Overrides SchemaMetatagTestTagInterface::testValue

33 methods override SchemaNameBase::testValue()
SchemaActionBase::testValue in src/SchemaActionBase.php
Provide a test input value for the property that will validate.
SchemaAddressBase::testValue in src/SchemaAddressBase.php
Provide a test input value for the property that will validate.
SchemaAnswerBase::testValue in src/SchemaAnswerBase.php
Provide a test input value for the property that will validate.
SchemaBrandBase::testValue in src/SchemaBrandBase.php
Provide a test input value for the property that will validate.
SchemaContactPointBase::testValue in src/SchemaContactPointBase.php
Provide a test input value for the property that will validate.

... See full list

File

src/SchemaNameBase.php, line 234

Class

SchemaNameBase
All Schema.org tags should extend this class.

Code

public static function testValue() {
  return static::testDefaultValue(2, ' ');
}