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
!7463
Convert warning to RuntimeException.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Convert warning to RuntimeException.
issue/drupal-3440038:3440038-replace-catch-of
into
11.x
Overview
0
Commits
2
Pipelines
2
Changes
2
Closed
Convert warning to RuntimeException.
Dave Long
requested to merge
issue/drupal-3440038:3440038-replace-catch-of
into
11.x
Apr 11, 2024
Overview
0
Commits
2
Pipelines
2
Changes
2
Closes
#3440038
0
0
Merge request reports
Compare
11.x
version 1
97c830cb
Apr 11, 2024
11.x (base)
and
latest version
latest version
3ee960bc
2 commits,
Apr 15, 2024
version 1
97c830cb
1 commit,
Apr 11, 2024
2 files
+
21
−
15
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
+
4
−
1
View file @ 3ee960bc
Edit in single-file editor
Open in Web IDE
Show full file
@@ -9,6 +9,7 @@
@@ -9,6 +9,7 @@
use
Drupal\Core\File\Exception\FileException
;
use
Drupal\Core\File\Exception\FileException
;
use
Drupal\Core\File\FileSystemInterface
;
use
Drupal\Core\File\FileSystemInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Logger\LoggerChannelTrait
;
use
Drupal\Core\StreamWrapper\StreamWrapperInterface
;
use
Drupal\Core\StreamWrapper\StreamWrapperInterface
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
use
Drupal\Core\TypedData\DataDefinition
;
use
Drupal\Core\TypedData\DataDefinition
;
@@ -52,6 +53,8 @@
@@ -52,6 +53,8 @@
*/
*/
class
ImageItem
extends
FileItem
{
class
ImageItem
extends
FileItem
{
use
LoggerChannelTrait
;
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
@@ -332,7 +335,7 @@ public function preSave() {
@@ -332,7 +335,7 @@ public function preSave() {
}
}
}
}
else
{
else
{
trigger_error
(
sprintf
(
"Missing file with ID %
s
."
,
$this
->
target_id
),
E_USER_WARNING
);
$this
->
getLogger
(
'image'
)
->
warning
(
"Missing file with ID %
id
."
,
[
'%id'
=>
$this
->
target_id
]
);
}
}
}
}
Loading