diff --git a/src/Plugin/Block/GroupOperationsBlock.php b/src/Plugin/Block/GroupOperationsBlock.php index b58f899..f43c96a 100644 --- a/src/Plugin/Block/GroupOperationsBlock.php +++ b/src/Plugin/Block/GroupOperationsBlock.php @@ -52,8 +52,21 @@ class GroupOperationsBlock extends BlockBase { uasort($links, '\Drupal\Component\Utility\SortArray::sortByWeightElement'); // Create an operations element with all of the links. - $build['#type'] = 'operations'; - $build['#links'] = $links; + // >>> Patch replaces the dropbutton setup with simple links by commenting + // >>> out two lines and replacing them with a foreach loop to build links. + # $build['#type'] = 'operations'; + # $build['#links'] = $links; + foreach ($links as $l) { + $t = $l['title']->render(); + $build[$t] = [ + '#title' => $t, + '#type' => 'link', + '#url' => $l['url'], + '#attributes' => [ + 'class' => ['group-operations-link'] + ] + ]; + } } }