You are here

public function SharebarController::del_button in ShareBar 8

1 string reference to 'SharebarController::del_button'
sharebar.routing.yml in ./sharebar.routing.yml
sharebar.routing.yml

File

src/Controller/SharebarController.php, line 45
Contains \Drupal\page_example\Controller\PageExampleController.

Class

SharebarController
Controller routines for sharebar routes.

Namespace

Drupal\sharebar\Controller

Code

public function del_button() {
  $item = menu_get_item();
  if ($content = system_admin_menu_block($item)) {
    $output = theme('admin_block_content', array(
      'content' => $content,
    ));
  }
  else {
    $output = t('You do not have any administrative items.');
  }
  return $output;
}