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
!11871
Fix media library form in workspaces.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Fix media library form in workspaces.
issue/drupal-3147148:3147148-media-library-form-workspaces
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
3
Closed
Andrei Mateescu
requested to merge
issue/drupal-3147148:3147148-media-library-form-workspaces
into
11.x
1 month ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
Closes
#3147148
0
0
Merge request reports
Compare
11.x
11.x (base)
and
latest version
latest version
796f601c
1 commit,
1 month ago
3 files
+
71
−
2
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/media_library/src/Form/AddFormBase.php
+
2
−
1
Options
@@ -14,6 +14,7 @@
use
Drupal\Core\Form\BaseFormIdInterface
;
use
Drupal\Core\Form\FormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\WorkspaceSafeFormInterface
;
use
Drupal\Core\Render\Element
;
use
Drupal\Core\Security\TrustedCallbackInterface
;
use
Drupal\Core\Url
;
@@ -27,7 +28,7 @@
/**
* Provides a base class for creating media items from within the media library.
*/
abstract
class
AddFormBase
extends
FormBase
implements
BaseFormIdInterface
,
TrustedCallbackInterface
{
abstract
class
AddFormBase
extends
FormBase
implements
BaseFormIdInterface
,
TrustedCallbackInterface
,
WorkspaceSafeFormInterface
{
/**
* The entity type manager.
Loading