public static Container::processContainer(&$element, FormStateInterface $form_state, &$complete_form)
Processes a container element.
array $element: An associative array containing the properties and children of the container.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
array $complete_form: The complete form structure.
array The processed element.
public static function processContainer(&$element, FormStateInterface $form_state, &$complete_form) { // Generate the ID of the element if it's not explicitly given. if (!isset($element['#id'])) { $element['#id'] = HtmlUtility::getUniqueId(implode('-', $element['#parents']) . '-wrapper'); } return $element; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Container.php/function/Container::processContainer/8.1.x