private function FormBase::_recursiveElementIds in Form Builder 7.2
1 call to FormBase::_recursiveElementIds()
- FormBase::getElementIdsInPreOrder in src/
FormBase.php - Get list of element ids in depth-first pre-order.
File
- src/
FormBase.php, line 349
Class
Namespace
Drupal\form_builderCode
private function _recursiveElementIds(&$ids, $e) {
foreach (element_children($e, TRUE) as $key) {
if (isset($e[$key]['#form_builder'])) {
$ids[] = $e[$key]['#form_builder']['element_id'];
$this
->_recursiveElementIds($ids, $e[$key]);
}
}
}