Removed global menu block - using a menu now

because the menu function automatically handles showing you only the links you have permission to traverse
This commit is contained in:
naomi 2018-05-08 18:31:11 +02:00
parent 53507dae33
commit eae1a2b03d
1 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
<?php
namespace Drupal\opencase\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Link;
use Drupal\Core\Url;
use Drupal\opencase\Utils;
/**
* Provides a 'GlobalMenu' block.
*
* @Block(
* id = "global_menu",
* admin_label = @Translation("OpenCase Global Menu"),
* )
*/
class GlobalMenu extends BlockBase {
/**
* - Links for adding various types of actor.
*/
public function build() {
$build = [];
$markup .= Utils::generateAddLinks('oc_actor', 'Add new');
$build['global_menu'] = [
'#markup' => "<div id='opencase_global_menu'>$markup</div",
];
return $build;
}
}