diff --git a/core/lib/Drupal/Core/Entity/Query/QueryInterface.php b/core/lib/Drupal/Core/Entity/Query/QueryInterface.php index c617204..2e32f33 100644 --- a/core/lib/Drupal/Core/Entity/Query/QueryInterface.php +++ b/core/lib/Drupal/Core/Entity/Query/QueryInterface.php @@ -149,7 +149,8 @@ * Enables sortable tables for this query. * * @param $headers - * An array of headers of the same structure as described in table.html.twig. + * An array of headers of the same structure as described in + * template_preprocess_table(). * Use a 'specifier' in place of a 'field' to specify what to sort on. * This can be an entity or a field as described in condition(). * @return \Drupal\Core\Entity\Query\QueryInterface diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php index ecb7c24..ad10342 100644 --- a/core/lib/Drupal/Core/Form/FormBuilder.php +++ b/core/lib/Drupal/Core/Form/FormBuilder.php @@ -614,9 +614,9 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS $build_info = $form_state->getBuildInfo(); // If no #theme has been set, automatically apply theme suggestions. - // form.html.twig itself is in #theme_wrappers and not #theme. Therefore, - // the #theme function only has to care for rendering the inner form - // elements, not the form itself. + // The form theme hook itself, which is rendered by form.html.twig, + // is in #theme_wrappers. Therefore, the #theme function only has to care + // for rendering the inner form elements, not the form itself. if (!isset($form['#theme'])) { $form['#theme'] = array($form_id); if (isset($build_info['base_form_id'])) { diff --git a/core/lib/Drupal/Core/Render/Element/Table.php b/core/lib/Drupal/Core/Render/Element/Table.php index 39db4e4..bec9df0 100644 --- a/core/lib/Drupal/Core/Render/Element/Table.php +++ b/core/lib/Drupal/Core/Render/Element/Table.php @@ -234,8 +234,7 @@ class Table extends FormElement { } /** - * #pre_render callback to transform children of an element into #rows - * suitable for table.html.twig. + * #pre_render callback to transform children of an element of #type 'table'. * * This function converts sub-elements of an element of #type 'table' to be * suitable for table.html.twig: