public static function SchemaMetatagManagerInterface::arrayTrim in Schema.org Metatag 8.2
Same name and namespace in other branches
- 8 src/SchemaMetatagManagerInterface.php \Drupal\schema_metatag\SchemaMetatagManagerInterface::arrayTrim()
Remove empty values from a nested array.
If the result is an empty array, the nested array is completely empty.
Parameters
mixed $array: The array or object to assess.
Return value
array The original array with empty values removed.
1 method overrides SchemaMetatagManagerInterface::arrayTrim()
- SchemaMetatagManager::arrayTrim in src/
SchemaMetatagManager.php - Remove empty values from a nested array.
File
- src/
SchemaMetatagManagerInterface.php, line 140
Class
- SchemaMetatagManagerInterface
- The Schema Metatag Manager.
Namespace
Drupal\schema_metatagCode
public static function arrayTrim($array);