You are here

public function InfoCardController::hideInfoCard in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x src/Controller/InfoCardController.php \Drupal\opigno_group_manager\Controller\InfoCardController::hideInfoCard()

Hides info card.

1 string reference to 'InfoCardController::hideInfoCard'
opigno_group_manager.routing.yml in ./opigno_group_manager.routing.yml
opigno_group_manager.routing.yml

File

src/Controller/InfoCardController.php, line 17

Class

InfoCardController
Class InfoCardController.

Namespace

Drupal\opigno_group_manager\Controller

Code

public function hideInfoCard() {
  $tempstore = \Drupal::service('user.private_tempstore')
    ->get('opigno_group_manager');
  $tempstore
    ->set('hide_info_card', TRUE);
  return new JsonResponse(NULL, Response::HTTP_OK);
}