public function SchemaMetatagClientInterface::getObjectTree in Schema.org Metatag 8.2
Reorganize the classes into a hierarchical tree.
The raw data doesn't show the whole hierarchy, just the immediate parents. The tree allows us to identify which objects are the topmost level and sort out other relationships between them, or pull out a collection of objects that are children of a specific parent.
Parameters
bool $clear: Whether to clear the cached array created by getObjectTree().
bool $clear_objects: Whether to clear the cached array created by getObjects().
Return value
array A hierarchical array of the object names.
1 method overrides SchemaMetatagClientInterface::getObjectTree()
- SchemaMetatagClient::getObjectTree in src/
SchemaMetatagClient.php - Reorganize the classes into a hierarchical tree.
File
- src/
SchemaMetatagClientInterface.php, line 83
Class
- SchemaMetatagClientInterface
- The SchemaMetatg Client Interface.
Namespace
Drupal\schema_metatagCode
public function getObjectTree($clear = FALSE, $clear_objects = FALSE);