You are here

public static function SliderProManager::flattenArray in Slider Pro 8

Flatten array and preserve keys.

Parameters

array $array:

Return value

array

1 call to SliderProManager::flattenArray()
SliderPro::validateOptionsForm in src/Plugin/views/style/SliderPro.php
Validate the options form.

File

src/Manager/SliderProManager.php, line 36

Class

SliderProManager
Class SliderProManager @package Drupal\slider_pro\Manager

Namespace

Drupal\slider_pro\Manager

Code

public static function flattenArray(array $array) {
  $flattened_array = array();
  array_walk_recursive($array, function ($a, $key) use (&$flattened_array) {
    $flattened_array[$key] = $a;
  });
  return $flattened_array;
}