You are here

public function MenuBadgesManager::setLocalBadges in Menu Badges 8

File

src/MenuBadgesManager.php, line 93

Class

MenuBadgesManager

Namespace

Drupal\menu_badges

Code

public function setLocalBadges($local_badges) {
  $this->config
    ->set('local_badges', $local_badges)
    ->save();
  \Drupal::service('plugin.manager.menu.local_task')
    ->clearCachedDefinitions();
  \Drupal::service('plugin.manager.menu.local_action')
    ->clearCachedDefinitions();
}