You are here

public static function SchemaMetatagManagerInterface::arrayTrim in Schema.org Metatag 8

Same name and namespace in other branches
  1. 8.2 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
Interface SchemaMetatagManagerInterface.

Namespace

Drupal\schema_metatag

Code

public static function arrayTrim($array);