public static function SchemaMetatagManager::isObject in Schema.org Metatag 8
Same name and namespace in other branches
- 8.2 src/SchemaMetatagManager.php \Drupal\schema_metatag\SchemaMetatagManager::isObject()
Is object?
Whether this array represents an object.
See if the array has numeric keys (it's actually an array) or not (it's an object that should have a @type or @id).
Parameters
mixed $array: The value to assess.
Return value
bool TRUE/FALSE.
Overrides SchemaMetatagManagerInterface::isObject
1 call to SchemaMetatagManager::isObject()
- SchemaMetatagManager::arrayTrim in src/
SchemaMetatagManager.php - Remove empty values from a nested array.
File
- src/
SchemaMetatagManager.php, line 304
Class
- SchemaMetatagManager
- Class SchemaMetatagManager.
Namespace
Drupal\schema_metatagCode
public static function isObject($array) {
return empty(static::countNumericKeys($array));
}