Commit b7ad99ad authored by webchick's avatar webchick

Issue #2364173 by alexpott: Fixed Remove dead code for session-test/set-not-started.

parent e852d6d1
......@@ -60,14 +60,6 @@ session_test.set_message_but_dont_save:
requirements:
_access: 'TRUE'
session_test.set_not_started:
path: '/session-test/set-not-started'
defaults:
_title: 'Set message when session is not started'
_content: '\Drupal\session_test\Controller\SessionTestController::setNotStarted'
requirements:
_access: 'TRUE'
session_test.is_logged_in:
path: '/session-test/is-logged-in'
defaults:
......
......@@ -114,20 +114,6 @@ public function setMessageButDontSave() {
return ['#markup' => ''];
}
/**
* Stores a value in $_SESSION['session_test_value'] without
* having started the session in advance.
*
* @return string
* A notification message.
*/
public function setNotStarted() {
if (!drupal_session_will_start()) {
$this->set($this->t('Session was not started'));
}
return ['#markup' => ''];
}
/**
* Only available if current user is logged in.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment