public static function SchemaNameBase::testValue in Schema.org Metatag 8
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
30 methods override SchemaNameBase::testValue()
- SchemaActionBase::testValue in src/
Plugin/ metatag/ Tag/ SchemaActionBase.php - Provide a test input value for the property that will validate.
- SchemaAddressBase::testValue in src/
Plugin/ metatag/ Tag/ SchemaAddressBase.php - Provide a test input value for the property that will validate.
- SchemaAnswerBase::testValue in src/
Plugin/ metatag/ Tag/ SchemaAnswerBase.php - Provide a test input value for the property that will validate.
- SchemaBrandBase::testValue in src/
Plugin/ metatag/ Tag/ SchemaBrandBase.php - Provide a test input value for the property that will validate.
- SchemaContactPointBase::testValue in src/
Plugin/ metatag/ Tag/ SchemaContactPointBase.php - Provide a test input value for the property that will validate.
File
- src/
Plugin/ metatag/ Tag/ SchemaNameBase.php, line 237
Class
- SchemaNameBase
- All Schema.org tags should extend this class.
Namespace
Drupal\schema_metatag\Plugin\metatag\TagCode
public static function testValue() {
return static::testDefaultValue(2, ' ');
}