116 calls to Element::children()

AccountSettingsForm::buildForm in core/modules/user/src/AccountSettingsForm.php
Form constructor.
Actions::preRenderActionsDropbutton in core/lib/Drupal/Core/Render/Element/Actions.php
#pre_render callback for #type 'actions'.
AddFormBase::preRenderAddedMedia in core/modules/media_library/src/Form/AddFormBase.php
Converts the set of newly added media into an item list for rendering.
ArgumentPluginBase::preRenderMoveArgumentOptions in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Moves argument options into their place.
BookAdminEditForm::submitForm in core/modules/book/src/Form/BookAdminEditForm.php
Form submission handler.
ckeditor5_form_filter_format_form_alter in core/modules/ckeditor5/ckeditor5.module
Implements hook_form_FORM_ID_alter().
ClaroPreRender::container in core/themes/claro/src/ClaroPreRender.php
Prerender callback for container elements.
ClaroPreRender::verticalTabs in core/themes/claro/src/ClaroPreRender.php
Prerender callback for Vertical Tabs element.
claro_form_alter in core/themes/claro/claro.theme
Implements hook_form_alter().
claro_form_system_modules_alter in core/themes/claro/claro.theme
Implements hook_form_FORM_ID_alter() for the system_modules form.
claro_form_views_ui_add_handler_form_alter in core/themes/claro/claro.theme
Implements hook_form_FORM_ID_alter() for Views UI add handler form.
claro_preprocess_file_managed_file in core/themes/claro/claro.theme
Implements hook_preprocess_HOOK() for file_managed_file.
claro_preprocess_file_widget_multiple in core/themes/claro/claro.theme
Implements hook_preprocess_HOOK() for file_widget_multiple.
claro_preprocess_menu_local_tasks in core/themes/claro/claro.theme
Implements hook_preprocess_HOOK() for menu-local-tasks templates.
claro_preprocess_views_exposed_form in core/themes/claro/claro.theme
Implements hook_preprocess_HOOK() for views_exposed_form.
claro_views_ui_display_tab_alter in core/themes/claro/claro.theme
Implements hook_views_ui_display_tab_alter().
claro_views_ui_display_top_alter in core/themes/claro/claro.theme
Implements hook_views_ui_display_top_alter().
ConfigFormBase::doStoreConfigMap in core/lib/Drupal/Core/Form/ConfigFormBase.php
Helper method for #after_build callback ::storeConfigKeyToFormElementMap().
ConfigFormBase::loadDefaultValuesFromConfig in core/lib/Drupal/Core/Form/ConfigFormBase.php
Process callback to recursively load default values from #config_target.
ContentTranslationHandler::addTranslatabilityClue in core/modules/content_translation/src/ContentTranslationHandler.php
Adds a clue about the form element translatability.
ContentTranslationHandler::entityFormAlter in core/modules/content_translation/src/ContentTranslationHandler.php
Performs the needed alterations to the entity form.
ContentTranslationHandler::entityFormSharedElements in core/modules/content_translation/src/ContentTranslationHandler.php
Process callback: determines which elements get clue in the form.
editor_form_filter_admin_overview_alter in core/modules/editor/editor.module
Implements hook_form_FORM_ID_alter().
Element::getVisibleChildren in core/lib/Drupal/Core/Render/Element.php
Returns the visible children of an element.
ElementTest::testChildren in core/tests/Drupal/Tests/Core/Render/ElementTest.php
Tests the children() method.
ElementTest::testIgnoredChildren in core/tests/Drupal/Tests/Core/Render/ElementTest.php
Tests the children() method with an ignored key/value pair.
ElementTest::testInvalidChildren in core/tests/Drupal/Tests/Core/Render/ElementTest.php
Tests the children() method with an invalid key.
EntityField::getItems in core/modules/views/src/Plugin/views/field/EntityField.php
Gets an array of items for the field.
EntityForm::actionsElement in core/lib/Drupal/Core/Entity/EntityForm.php
Returns the action form element for the current entity form.
EntityReferenceItem::fieldSettingsAjaxProcessElement in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
Adds the field settings to AJAX form elements.
EntityViewBuilder::buildMultiple in core/lib/Drupal/Core/Entity/EntityViewBuilder.php
Builds multiple entities' views; augments entity defaults.
EntityViewTrait::buildEntityView in core/tests/Drupal/Tests/EntityViewTrait.php
Builds the renderable view of an entity.
ExtraFieldBlock::replaceFieldPlaceholder in core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Replaces all placeholders for a given field.
FieldConfigDeleteForm::buildForm in core/modules/field_ui/src/Form/FieldConfigDeleteForm.php
Form constructor.
FieldConfigEditForm::addAjaxCallbacks in core/modules/field_ui/src/Form/FieldConfigEditForm.php
Add Ajax callback for all inputs.
FieldConfigEditForm::hasAnyRequired in core/modules/field_ui/src/Form/FieldConfigEditForm.php
A function to check if element contains any required elements.
FieldUiTable::preRenderRegionRows in core/modules/field_ui/src/Element/FieldUiTable.php
Performs pre-render to move #regions to rows.
FieldUiTable::tablePreRender in core/modules/field_ui/src/Element/FieldUiTable.php
Performs pre-render tasks on field_ui_table elements.
field_ui_test_form_entity_view_display_edit_form_alter in core/modules/field_ui/tests/modules/field_ui_test/field_ui_test.module
Implements hook_form_FORM_BASE_ID_alter().
FileTransferAuthorizeForm::setConnectionSettingsDefaults in core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
Sets the default settings on a file transfer connection form recursively.
FileWidget::process in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Form API callback: Processes a file_generic field element.
FileWidget::processMultiple in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Form API callback: Processes a group of file_generic field elements.
FileWidget::validateMultipleCount in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Validates the number of uploaded files.
file_managed_file_submit in core/modules/file/file.module
Form submission handler for upload / remove buttons of managed_file elements.
FilterPluginBase::buildExposedFiltersGroupForm in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Build the form to let users create the group of exposed filters.
FilterPluginBase::buildExposedForm in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Render our chunk of the exposed filter form when selecting.
FilterPluginBase::showBuildGroupForm in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Shortcut to display the exposed options form.
FormatterBase::view in core/lib/Drupal/Core/Field/FormatterBase.php
Builds a renderable array for a fully themed field.
FormBuilder::doBuildForm in core/lib/Drupal/Core/Form/FormBuilder.php
FormElementHelper::getElementByName in core/lib/Drupal/Core/Form/FormElementHelper.php
Retrieves a form element.
FormElementHelper::getElementTitle in core/lib/Drupal/Core/Form/FormElementHelper.php
Returns the title for the element.
FormErrorHandler::setElementErrorsFromFormState in core/lib/Drupal/Core/Form/FormErrorHandler.php
Stores errors and a list of child element errors directly on each element.
FormHelper::rewriteStatesSelector in core/lib/Drupal/Core/Form/FormHelper.php
Rewrites #states selectors in a render element.
FormOperations::addWorkspaceValidation in core/modules/workspaces/src/FormOperations.php
Adds our validation handler recursively on each element of a form.
FormTest::assertFormValuesDefault in core/modules/system/tests/src/Functional/Form/FormTest.php
Assert that the values submitted to a form matches the default values of the elements.
FormTest::testDisabledElements in core/modules/system/tests/src/Functional/Form/FormTest.php
Tests handling of disabled elements.
FormValidator::doValidateForm in core/lib/Drupal/Core/Form/FormValidator.php
Performs validation on form elements.
HandlerBase::showExposeForm in core/modules/views/src/Plugin/views/HandlerBase.php
Shortcut to display the exposed options form.
LayoutBuilder::buildAdministrativeSection in core/modules/layout_builder/src/Element/LayoutBuilder.php
Builds the render array for the layout section while editing.
Link::preRenderLinks in core/lib/Drupal/Core/Render/Element/Link.php
Pre-render callback: Collects child links into a single array.
ListFloatItem::storageSettingsForm in core/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php
Returns a form for the storage-level settings.
ListIntegerItem::storageSettingsForm in core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php
Returns a form for the storage-level settings.
ListItemBase::validateAllowedValues in core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
#element_validate callback for options field allowed values.
ListStringItem::storageSettingsForm in core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
Returns a form for the storage-level settings.
MenuForm::buildOverviewForm in core/modules/menu_ui/src/MenuForm.php
Form constructor to edit an entire menu tree at once.
MenuForm::submitOverviewForm in core/modules/menu_ui/src/MenuForm.php
Submit handler for the menu overview form.
MessageViewBuilder::view in core/modules/contact/src/MessageViewBuilder.php
Builds the render array for the provided entity.
ModulesListForm::buildForm in core/modules/system/src/Form/ModulesListForm.php
Form constructor.
NavigationLayout::build in core/modules/navigation/src/NavigationLayout.php
Build a render array for layout with regions.
NavigationMenuBlockTest::convertBuiltMenuToIdTree in core/modules/navigation/tests/src/Kernel/NavigationMenuBlockTest.php
Helper method to allow for easy menu link tree structure assertions.
olivero_preprocess_field__node__created in core/themes/olivero/olivero.theme
Implements hook_preprocess_HOOK().
olivero_preprocess_menu_local_tasks in core/themes/olivero/olivero.theme
Implements hook_preprocess_HOOK() for menu-local-tasks templates.
Overview::buildForm in core/modules/forum/src/Form/Overview.php
Form constructor.
PluginBase::preRenderAddFieldsetMarkup in core/modules/views/src/Plugin/views/PluginBase.php
Moves form elements into fieldsets for presentation purposes.
PluginBase::preRenderFlattenData in core/modules/views/src/Plugin/views/PluginBase.php
Flattens the structure of form elements.
RenderCache::getCacheableRenderArray in core/lib/Drupal/Core/Render/RenderCache.php
RenderElementBase::preRenderGroup in core/lib/Drupal/Core/Render/Element/RenderElementBase.php
Adds members of this group as actual elements for rendering.
Renderer::doRender in core/lib/Drupal/Core/Render/Renderer.php
See the docs for ::render().
RendererTest::testRenderCacheProperties in core/tests/Drupal/Tests/Core/Render/RendererTest.php
Tests that #cache_properties are properly handled.
RendererTest::testRenderSorting in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
SystemMenuBlockTest::convertBuiltMenuToIdTree in core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
Helper method to allow for easy menu link tree structure assertions.
SystemMenuNavigationBlockTest::convertBuiltMenuToIdTree in core/modules/navigation/tests/src/Kernel/SystemMenuNavigationBlockTest.php
Helper method to allow for easy menu link tree structure assertions.
SystemMenuOffCanvasForm::buildConfigurationForm in core/modules/system/src/Form/SystemMenuOffCanvasForm.php
Form constructor.
Table::preRenderTable in core/lib/Drupal/Core/Render/Element/Table.php
#pre_render callback to transform children of an element of #type 'table'.
Table::processTable in core/lib/Drupal/Core/Render/Element/Table.php
#process callback for #type 'table' to add tableselect support.
Tableselect::preRenderTableselect in core/lib/Drupal/Core/Render/Element/Tableselect.php
Prepares a 'tableselect' #type element for rendering.
template_preprocess_book_all_books_block in core/modules/book/book.module
Prepares variables for book listing block templates.
template_preprocess_comment in core/modules/comment/comment.module
Prepares variables for comment templates.
template_preprocess_field_multiple_value_form in core/includes/theme.inc
Prepares variables for individual form element templates.
template_preprocess_file_widget_multiple in core/modules/file/file.module
Prepares variables for multi file form widget templates.
template_preprocess_image_anchor in core/modules/image/image.admin.inc
Prepares variables for image anchor templates.
template_preprocess_image_widget in core/modules/image/image.field.inc
Prepares variables for image widget templates.
template_preprocess_item_list in core/includes/theme.inc
Prepares variables for item list templates.
template_preprocess_language_content_settings_table in core/modules/language/language.admin.inc
Prepares variables for language content settings table templates.
template_preprocess_layout in core/modules/layout_discovery/layout_discovery.module
Prepares variables for layout templates.
template_preprocess_media in core/modules/media/media.module
Prepares variables for media templates.
template_preprocess_media_library_item in core/modules/media_library/media_library.module
Prepares variables for a selected media item.
template_preprocess_node in core/modules/node/node.module
Prepares variables for node templates.
template_preprocess_system_modules_details in core/modules/system/system.admin.inc
Prepares variables for the module details templates.
template_preprocess_system_modules_uninstall in core/modules/system/system.admin.inc
Prepares variables for module uninstall templates.
template_preprocess_taxonomy_term in core/modules/taxonomy/taxonomy.module
Prepares variables for taxonomy term templates.
template_preprocess_toolbar in core/modules/toolbar/toolbar.module
Prepares variables for administration toolbar templates.
template_preprocess_user in core/modules/user/user.module
Prepares variables for user templates.
template_preprocess_views_ui_build_group_filter_form in core/modules/views_ui/views_ui.theme.inc
Prepares variables for Views UI build group filter form templates.
template_preprocess_views_ui_style_plugin_table in core/modules/views_ui/views_ui.theme.inc
Prepares variables for style plugin table templates.
TextFormat::processFormat in core/modules/filter/src/Element/TextFormat.php
Expands an element into a base element with text format selector attached.
ThemeSettingsForm::buildForm in core/modules/system/src/Form/ThemeSettingsForm.php
Toolbar::preRenderToolbar in core/modules/toolbar/src/Element/Toolbar.php
Builds the Toolbar as a structured array ready for rendering.
TranslateEditForm::buildForm in core/modules/locale/src/Form/TranslateEditForm.php
Form constructor.
umami_preprocess_block__bundle__banner_block in core/profiles/demo_umami/themes/umami/umami.theme
Implements hook_umami_preprocess_block__bundle__banner_block().
umami_preprocess_block__bundle__footer_promo_block in core/profiles/demo_umami/themes/umami/umami.theme
Implements hook_umami_preprocess_block__bundle__footer_promo_block().
user_user_view_alter in core/modules/user/user.module
Implements hook_ENTITY_TYPE_view_alter() for user entities.
ValidationTest::testCustomRequiredError in core/modules/system/tests/src/Functional/Form/ValidationTest.php
Tests #required with custom validation errors.
ViewsSelection::stripAdminAndAnchorTagsFromResults in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
Strips all admin and anchor tags from a result list.
_content_translation_preprocess_language_content_settings_table in core/modules/content_translation/content_translation.admin.inc
(proxied) Implements hook_preprocess_HOOK().
_field_test_alter_widget in core/modules/field/tests/modules/field_test/field_test.module
Sets up alterations for widget alter tests.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.