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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!7496
Resolve
#3440041
"Replace catch"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Resolve
#3440041
"Replace catch"
issue/drupal-3440041:3440041-replace-catch
into
11.x
Overview
0
Commits
3
Pipelines
2
Changes
3
Open
Resolve #3440041 "Replace catch"
Samit Khulve
requested to merge
issue/drupal-3440041:3440041-replace-catch
into
11.x
Apr 15, 2024
Overview
0
Commits
3
Pipelines
2
Changes
3
Closes
#3440041
0
0
Merge request reports
Compare
11.x
version 1
9b20553d
Apr 15, 2024
11.x (base)
and
latest version
latest version
a364b765
3 commits,
Apr 16, 2024
version 1
9b20553d
2 commits,
Apr 15, 2024
3 files
+
36
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
core/modules/views/src/ViewExecutable.php
+
9
−
2
View file @ a364b765
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,9 +2,9 @@
namespace
Drupal\views
;
use
Drupal\Component\Render\FormattableMarkup
;
use
Drupal\Component\Utility\Html
;
use
Drupal\Component\Utility\Tags
;
use
Drupal\Core\Logger\LoggerChannelTrait
;
use
Drupal\Core\Routing\RouteProviderInterface
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\views\Plugin\views\display\DisplayRouterInterface
;
@@ -28,6 +28,8 @@
#[\AllowDynamicProperties]
class
ViewExecutable
{
use
LoggerChannelTrait
;
/**
* The config entity in which the view is stored.
*
@@ -821,7 +823,12 @@ public function setDisplay($display_id = NULL) {
// Ensure the requested display exists.
if
(
!
$this
->
displayHandlers
->
has
(
$display_id
))
{
trigger_error
(
new
FormattableMarkup
(
'setDisplay() called with invalid display ID "@display".'
,
[
'@display'
=>
$display_id
]),
E_USER_WARNING
);
$this
->
getLogger
(
'views'
)
->
warning
(
'setDisplay() called with invalid display ID "@display_id".'
,
[
'@display_id'
=>
$display_id
,
],
);
return
FALSE
;
}
Loading