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
!8689
Resolve
#2852463
"Configurable trait and base"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#2852463
"Configurable trait and base"
issue/drupal-2852463:2852463-configurable-trait-and-base
into
11.x
Overview
11
Commits
27
Pipelines
20
Changes
14
Open
Michael Lutz
requested to merge
issue/drupal-2852463:2852463-configurable-trait-and-base
into
11.x
10 months ago
Overview
11
Commits
27
Pipelines
20
Changes
14
Expand
Closes
#2852463
0
0
Merge request reports
Compare
11.x
version 19
5c24fa90
2 months ago
version 18
67f2af60
2 months ago
version 17
38264145
2 months ago
version 16
313de3e4
2 months ago
version 15
647dca89
2 months ago
version 14
de2d8cfc
6 months ago
version 13
1bbb0048
9 months ago
version 12
7efdb4f3
9 months ago
version 11
d11a9a13
9 months ago
version 10
13b58c16
10 months ago
version 9
25669fa9
10 months ago
version 8
d55e14a8
10 months ago
version 7
6aaa2555
10 months ago
version 6
f63c5d37
10 months ago
version 5
09f0874e
10 months ago
version 4
a062070a
10 months ago
version 3
f64bf4be
10 months ago
version 2
06129da9
10 months ago
version 1
69ae1cf5
10 months ago
11.x (HEAD)
and
latest version
latest version
af8ba816
27 commits,
2 months ago
version 19
5c24fa90
26 commits,
2 months ago
version 18
67f2af60
25 commits,
2 months ago
version 17
38264145
24 commits,
2 months ago
version 16
313de3e4
23 commits,
2 months ago
version 15
647dca89
22 commits,
2 months ago
version 14
de2d8cfc
21 commits,
6 months ago
version 13
1bbb0048
20 commits,
9 months ago
version 12
7efdb4f3
19 commits,
9 months ago
version 11
d11a9a13
18 commits,
9 months ago
version 10
13b58c16
17 commits,
10 months ago
version 9
25669fa9
16 commits,
10 months ago
version 8
d55e14a8
15 commits,
10 months ago
version 7
6aaa2555
14 commits,
10 months ago
version 6
f63c5d37
13 commits,
10 months ago
version 5
09f0874e
12 commits,
10 months ago
version 4
a062070a
11 commits,
10 months ago
version 3
f64bf4be
10 commits,
10 months ago
version 2
06129da9
7 commits,
10 months ago
version 1
69ae1cf5
6 commits,
10 months ago
14 files
+
385
−
245
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Action/ConfigurableActionBase.php
+
3
−
21
Options
@@ -5,6 +5,7 @@
use
Drupal\Component\Plugin\ConfigurableInterface
;
use
Drupal\Component\Plugin\DependentPluginInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Plugin\ConfigurableTrait
;
use
Drupal\Core\Plugin\PluginFormInterface
;
/**
@@ -12,6 +13,8 @@
*/
abstract
class
ConfigurableActionBase
extends
ActionBase
implements
ConfigurableInterface
,
DependentPluginInterface
,
PluginFormInterface
{
use
ConfigurableTrait
;
/**
* {@inheritdoc}
*/
@@ -21,27 +24,6 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this
->
setConfiguration
(
$configuration
);
}
/**
* {@inheritdoc}
*/
public
function
defaultConfiguration
()
{
return
[];
}
/**
* {@inheritdoc}
*/
public
function
getConfiguration
()
{
return
$this
->
configuration
;
}
/**
* {@inheritdoc}
*/
public
function
setConfiguration
(
array
$configuration
)
{
$this
->
configuration
=
$configuration
+
$this
->
defaultConfiguration
();
}
/**
* {@inheritdoc}
*/
Loading