diff --git a/core/lib/Drupal/Core/Render/Element/Actions.php b/core/lib/Drupal/Core/Render/Element/Actions.php index 971b55b..2e75165 100644 --- a/core/lib/Drupal/Core/Render/Element/Actions.php +++ b/core/lib/Drupal/Core/Render/Element/Actions.php @@ -32,16 +32,12 @@ class Actions extends Container { public function getInfo() { $class = get_class($this); return [ - '#optional' => FALSE, '#process' => [ // @todo Move this to #pre_render. [$class, 'preRenderActionsDropbutton'], [$class, 'processActions'], [$class, 'processContainer'], ], - '#pre_render' => [ - [$class, 'preRenderContainer'], - ], '#weight' => 100, '#theme_wrappers' => ['container'], ]; diff --git a/core/lib/Drupal/Core/Render/Element/Container.php b/core/lib/Drupal/Core/Render/Element/Container.php index 23f951a..357e6a5 100644 --- a/core/lib/Drupal/Core/Render/Element/Container.php +++ b/core/lib/Drupal/Core/Render/Element/Container.php @@ -89,7 +89,7 @@ public static function processContainer(&$element, FormStateInterface $form_stat /** * Prevents optional containers from rendering if they have no children. * - * @param $element + * @param array $element * An associative array containing the properties and children of the * container. *