public static function SchemaItemListElementBase::getItems in Schema.org Metatag 7
Process the input value into an array of items.
Each type of ItemList can extend this to process the input value into a list of items. The default behavior will be a simple array from a comma-separated list.
1 call to SchemaItemListElementBase::getItems()
- SchemaItemListElementBase::outputValue in src/
SchemaItemListElementBase.php - Transform input value to its display output.
2 methods override SchemaItemListElementBase::getItems()
- SchemaItemListElementBreadcrumbBase::getItems in src/
SchemaItemListElementBreadcrumbBase.php - Process the input value into an array of items.
- SchemaItemListElementViewsBase::getItems in src/
SchemaItemListElementViewsBase.php - Process the input value into an array of items.
File
- src/
SchemaItemListElementBase.php, line 70
Class
- SchemaItemListElementBase
- All Schema.org itemListElement tags should extend this class.
Code
public static function getItems($input_value) {
if (!is_array($input_value)) {
$input_value = SchemaMetatagManager::explode($input_value);
}
return $input_value;
}