comparison core/includes/common.inc @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
606 * '#rows' => $rows, 606 * '#rows' => $rows,
607 * '#attributes' => array( 607 * '#attributes' => array(
608 * 'id' => 'my-module-table', 608 * 'id' => 'my-module-table',
609 * ), 609 * ),
610 * ); 610 * );
611 * return drupal_render($table); 611 * return \Drupal::service('renderer')->render($table);
612 * @endcode 612 * @endcode
613 * 613 *
614 * In the theme function for the form, a special class must be added to each 614 * In the theme function for the form, a special class must be added to each
615 * form element within the same column, "grouping" them together. 615 * form element within the same column, "grouping" them together.
616 * 616 *
897 * 897 *
898 * @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Avoid early 898 * @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Avoid early
899 * rendering when possible or loop through the elements and render them as 899 * rendering when possible or loop through the elements and render them as
900 * they are available. 900 * they are available.
901 * 901 *
902 * @see drupal_render() 902 * @see \Drupal\Core\Render\RendererInterface::render()
903 * @see https://www.drupal.org/node/2912757 903 * @see https://www.drupal.org/node/2912757
904 */ 904 */
905 function drupal_render_children(&$element, $children_keys = NULL) { 905 function drupal_render_children(&$element, $children_keys = NULL) {
906 if ($children_keys === NULL) { 906 if ($children_keys === NULL) {
907 $children_keys = Element::children($element); 907 $children_keys = Element::children($element);