public function SchemaMetatagClient::isIncludedProperty in Schema.org Metatag 8.2
Detect if this is a Schema.org property we care about.
Parameters
array $item: The item to examine.
Return value
bool Whether or not to include it.
Overrides SchemaMetatagClientInterface::isIncludedProperty
1 call to SchemaMetatagClient::isIncludedProperty()
- SchemaMetatagClient::propertyInfo in src/
SchemaMetatagClient.php - Retrieve object properties.
File
- src/
SchemaMetatagClient.php, line 416
Class
- SchemaMetatagClient
- Class SchemaMetatagClient.
Namespace
Drupal\schema_metatagCode
public function isIncludedProperty(array $item) {
if (!isset($item['@type'])) {
return FALSE;
}
if ($item['@type'] != 'rdf:Property') {
return FALSE;
}
if (!empty($item[static::$prefix . 'supersededBy'])) {
return FALSE;
}
return TRUE;
}