You are here

public static function MetatagViewsCacheWrapper::preRenderFlattenData in Metatag 8

Flattens the structure of form elements.

If a form element has #flatten = TRUE, then all of its children get moved to the same level as the element itself. So $form['to_be_flattened'][$key] becomes $form[$key], and $form['to_be_flattened'] gets unset.

Parameters

array $form: The form build array to alter.

Return value

array The form build array.

Overrides PluginBase::preRenderFlattenData

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 320

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

public static function preRenderFlattenData($form) {
  CachePluginBase::preRenderFlattenData($form);
}