You are here

function layout_paragraphs_preprocess_radios in Layout Paragraphs 2.0.x

Same name and namespace in other branches
  1. 1.0.x layout_paragraphs.module \layout_paragraphs_preprocess_radios()

Implements hook_prepreprocess_radios().

Add wrapper class for layout selection.

File

./layout_paragraphs.module, line 112
Contains layout_paragraphs.module.

Code

function layout_paragraphs_preprocess_radios(&$variables) {
  if (isset($variables['element']['#wrapper_attributes'])) {
    $variables['attributes'] += $variables['element']['#wrapper_attributes'];
  }
}