public function SharebarController::del_button in ShareBar 8
1 string reference to 'SharebarController::del_button'
File
- src/
Controller/ SharebarController.php, line 45 - Contains \Drupal\page_example\Controller\PageExampleController.
Class
- SharebarController
- Controller routines for sharebar routes.
Namespace
Drupal\sharebar\ControllerCode
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;
}