/**
  * {@inheritdoc}
  */
 public function isFirstPageAfterLogin()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isFirstPageAfterLogin');
     if (!$pluginInfo) {
         return parent::isFirstPageAfterLogin();
     } else {
         return $this->___callPlugins('isFirstPageAfterLogin', func_get_args(), $pluginInfo);
     }
 }
Example #2
0
 /**
  * Check whether block should be displayed
  *
  * @return bool
  */
 public function canShow()
 {
     return $this->_authSession->isFirstPageAfterLogin() && $this->_getLatestItem();
 }
Example #3
0
 /**
  * @dataProvider firstPageAfterLoginDataProvider
  * @param bool $isFirstPageAfterLogin
  */
 public function testFirstPageAfterLogin($isFirstPageAfterLogin)
 {
     $this->session->setIsFirstPageAfterLogin($isFirstPageAfterLogin);
     $this->assertEquals($isFirstPageAfterLogin, $this->session->isFirstPageAfterLogin());
 }