Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
10b4848f
Commit
10b4848f
authored
12 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#1643702
by katbailey: incorrect method signatures in ViewSubsriber class.
parent
8e11050f
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php
+8
-8
8 additions, 8 deletions
core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php
with
8 additions
and
8 deletions
core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php
+
8
−
8
View file @
10b4848f
...
...
@@ -10,7 +10,7 @@
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
Symfony\Component\HttpKernel\KernelEvents
;
use
Symfony\Component\HttpKernel\Event\GetResponseEvent
;
use
Symfony\Component\HttpKernel\Event\GetResponse
ForControllerResult
Event
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Drupal\Core\ContentNegotiation
;
...
...
@@ -39,10 +39,10 @@ public function __construct(ContentNegotiation $negotiation) {
* from an JSON-type response is a JSON string, so just wrap it into a
* Response object.
*
* @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* @param Symfony\Component\HttpKernel\Event\GetResponse
ForControllerResult
Event $event
* The Event to process.
*/
public
function
onView
(
GetResponseEvent
$event
)
{
public
function
onView
(
GetResponse
ForControllerResult
Event
$event
)
{
$request
=
$event
->
getRequest
();
...
...
@@ -56,7 +56,7 @@ public function onView(GetResponseEvent $event) {
}
}
public
function
onJson
(
GetResponseEvent
$event
)
{
public
function
onJson
(
GetResponse
ForControllerResult
Event
$event
)
{
$page_callback_result
=
$event
->
getControllerResult
();
$response
=
new
JsonResponse
();
...
...
@@ -65,7 +65,7 @@ public function onJson(GetResponseEvent $event) {
return
$response
;
}
public
function
onAjax
(
GetResponseEvent
$event
)
{
public
function
onAjax
(
GetResponse
ForControllerResult
Event
$event
)
{
$page_callback_result
=
$event
->
getControllerResult
();
// Construct the response content from the page callback result.
...
...
@@ -79,7 +79,7 @@ public function onAjax(GetResponseEvent $event) {
return
$response
;
}
public
function
onIframeUpload
(
GetResponseEvent
$event
)
{
public
function
onIframeUpload
(
GetResponse
ForControllerResult
Event
$event
)
{
$page_callback_result
=
$event
->
getControllerResult
();
// Construct the response content from the page callback result.
...
...
@@ -106,10 +106,10 @@ public function onIframeUpload(GetResponseEvent $event) {
* an HTML-type response is a render array from a legacy page callback and
* render it.
*
* @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* @param Symfony\Component\HttpKernel\Event\GetResponse
ForControllerResult
Event $event
* The Event to process.
*/
public
function
onHtml
(
GetResponseEvent
$event
)
{
public
function
onHtml
(
GetResponse
ForControllerResult
Event
$event
)
{
$page_callback_result
=
$event
->
getControllerResult
();
return
new
Response
(
drupal_render_page
(
$page_callback_result
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment