protected function getRenderedBreadcrumbs() { if (!$this->user->isAuthenticated()) { // no breadcrumbs for users that are not logged in return ''; } $breadcrumbs_activities = $this->getBreadcrumbsActivities(); // render activities $rendererd_breadcrumbs = []; foreach ($breadcrumbs_activities as $breadcrumbs_activity) { $rendererd_breadcrumbs[] = $this->renderSubject($breadcrumbs_activity); } return $rendererd_breadcrumbs; }
/** * Execute the shutdown procedure. * * @author Sean Kerr <*****@*****.**> * @since 0.9.0 */ public function shutdown() { $storage = $this->getContext()->getStorage(); // write credentials to the storage $storage->write(self::AUTH_NAMESPACE, $this->authenticated); $storage->write(self::CREDENTIAL_NAMESPACE, $this->credentials); // call the parent shutdown method parent::shutdown(); }