protected BlockLibraryController::buildLocalActions()
Builds the local actions for this listing.
Return value
array An array of local actions for this listing.
File
- core/modules/block/src/Controller/BlockLibraryController.php, line 180
Class
- BlockLibraryController
- Provides a list of block plugins to be added to the layout.
Namespace
Drupal\block\Controller
Code
protected function buildLocalActions() { $build = $this->localActionManager->getActionsForRoute($this->routeMatch->getRouteName()); // Without this workaround, the action links will be rendered as <li> with // no wrapping <ul> element. if (!empty($build)) { $build['#prefix'] = '<ul class="action-links">'; $build['#suffix'] = '</ul>'; } return $build; }
Please login to continue.