Skip to content

Instantly share code, notes, and snippets.

@davidjguru
Created May 8, 2018 12:00
Show Gist options
  • Save davidjguru/3802ff082629e50392b1a84029f326c0 to your computer and use it in GitHub Desktop.
Save davidjguru/3802ff082629e50392b1a84029f326c0 to your computer and use it in GitHub Desktop.
Drupal set horizontal layout from a render array of elements
// Context: Within a formElement, inside a FormWidget
$element += array(
'#type' => 'fieldset',
'#attributes' => array('class' => array('container-inline')),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment