You are here

public static function MetatagViewsCacheWrapper::preRenderAddFieldsetMarkup in Metatag 8

Moves form elements into fieldsets for presentation purposes.

Many views forms use #tree = TRUE to keep their values in a hierarchy for easier storage. Moving the form elements into fieldsets during form building would break up that hierarchy. Therefore, we wait until the pre_render stage, where any changes we make affect presentation only and aren't reflected in $form_state->getValues().

Parameters

array $form: The form build array to alter.

Return value

array The form build array.

Overrides PluginBase::preRenderAddFieldsetMarkup

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 313

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

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