You are here

protected function D3LibraryInfoController::children in d3.js 7

Helper function to get child elements.

File

includes/D3LibraryInfoController.inc, line 55
D3 library info controller class.

Class

D3LibraryInfoController
Base handler for library info files.

Code

protected function children($elements) {
  foreach ($elements as $key => &$value) {
    if (is_array($value)) {
      $this
        ->children($value);
    }
    if ($key == '_info') {
      unset($elements[$key]);
    }
  }
  return $elements;
}