public function ItemListElement::testValue in Schema.org Metatag 8.2
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.
Parameters
mixed $type: The default to use for the @type element, if any.
Return value
mixed Return the test value, either a string or array, depending on the property.
Overrides PropertyTypeBase::testValue
1 method overrides ItemListElement::testValue()
- BreadcrumbList::testValue in src/
Plugin/ schema_metatag/ PropertyType/ BreadcrumbList.php - Provide a test input value for the property that will validate.
File
- src/
Plugin/ schema_metatag/ PropertyType/ ItemListElement.php, line 198
Class
- ItemListElement
- Provides a plugin for the 'ItemListElement' Schema.org property type.
Namespace
Drupal\schema_metatag\Plugin\schema_metatag\PropertyTypeCode
public function testValue($type = '') {
return 'first,second';
}