<?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Process\ActionsDropbutton.
- */
namespace Drupal\bootstrap\Plugin\Process;
-use Drupal\bootstrap\Annotation\BootstrapProcess;
use Drupal\bootstrap\Utility\Element;
use Drupal\Core\Form\FormStateInterface;
*
* @see \Drupal\Core\Render\Element\Actions::preRenderActionsDropbutton()
*
- * @todo This may become a #pre_render callback.
+ * @see https://www.drupal.org/node/2855458
+ *
+ * @todo Remove once core is fixed.
*/
class ActionsDropbutton extends ProcessBase implements ProcessInterface {
$dropbuttons->$dropbutton = ['#type' => 'dropbutton'];
}
- $dropbuttons[$dropbutton]['#links'][$key] = $child->getArray();
+ $dropbuttons[$dropbutton]['#links'][$key] = ['title' => $child->getArray()];
// Remove original child from the element so it's not rendered twice.
$child->setProperty('printed', TRUE);