public static function SchemaMetatagManager::isObject in Schema.org Metatag 7
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
array $array: The array 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 318 - A generic substitution for Drupal 8 Random utility.
Class
- SchemaMetatagManager
- Class SchemaMetatagManager.
Code
public static function isObject($array) {
return empty(static::countNumericKeys($array));
}