Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
b7ad99ad
Commit
b7ad99ad
authored
Oct 29, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2364173
by alexpott: Fixed Remove dead code for session-test/set-not-started.
parent
e852d6d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
core/modules/system/tests/modules/session_test/session_test.routing.yml
...ystem/tests/modules/session_test/session_test.routing.yml
+0
-8
core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
...les/session_test/src/Controller/SessionTestController.php
+0
-14
No files found.
core/modules/system/tests/modules/session_test/session_test.routing.yml
View file @
b7ad99ad
...
...
@@ -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
:
...
...
core/modules/system/tests/modules/session_test/src/Controller/SessionTestController.php
View file @
b7ad99ad
...
...
@@ -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.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment