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
Merge requests
!7496
Resolve
#3440041
"Replace catch"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3440041
"Replace catch"
issue/drupal-3440041:3440041-replace-catch
into
11.x
Overview
0
Commits
3
Pipelines
2
Changes
3
Open
Samit Khulve
requested to merge
issue/drupal-3440041:3440041-replace-catch
into
11.x
1 year ago
Overview
0
Commits
3
Pipelines
2
Changes
3
Expand
Closes
#3440041
0
0
Merge request reports
Compare
11.x
version 1
9b20553d
1 year ago
11.x (base)
and
latest version
latest version
a364b765
3 commits,
1 year ago
version 1
9b20553d
2 commits,
1 year ago
3 files
+
36
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
core/modules/views/src/ViewExecutable.php
+
9
−
2
Options
@@ -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