Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3421017
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3421017
Commits
abb22d7d
Commit
abb22d7d
authored
9 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2385429
by tim.plunkett: setExecutableManager() is implemented on the wrong class
parent
fd8c8cd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Condition/ConditionPluginBase.php
+16
-0
16 additions, 0 deletions
core/lib/Drupal/Core/Condition/ConditionPluginBase.php
core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
+0
-15
0 additions, 15 deletions
core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
with
16 additions
and
15 deletions
core/lib/Drupal/Core/Condition/ConditionPluginBase.php
+
16
−
0
View file @
abb22d7d
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
namespace
Drupal\Core\Condition
;
namespace
Drupal\Core\Condition
;
use
Drupal\Core\Executable\ExecutableManagerInterface
;
use
Drupal\Core\Executable\ExecutablePluginBase
;
use
Drupal\Core\Executable\ExecutablePluginBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
;
use
Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
;
...
@@ -24,6 +25,13 @@ abstract class ConditionPluginBase extends ExecutablePluginBase implements Condi
...
@@ -24,6 +25,13 @@ abstract class ConditionPluginBase extends ExecutablePluginBase implements Condi
use
ContextAwarePluginAssignmentTrait
;
use
ContextAwarePluginAssignmentTrait
;
/**
* The condition manager to proxy execute calls through.
*
* @var \Drupal\Core\Executable\ExecutableInterface
*/
protected
$executableManager
;
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
...
@@ -107,4 +115,12 @@ public function calculateDependencies() {
...
@@ -107,4 +115,12 @@ public function calculateDependencies() {
return
array
();
return
array
();
}
}
/**
* {@inheritdoc}
*/
public
function
setExecutableManager
(
ExecutableManagerInterface
$executableManager
)
{
$this
->
executableManager
=
$executableManager
;
return
$this
;
}
}
}
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
+
0
−
15
View file @
abb22d7d
...
@@ -16,21 +16,6 @@
...
@@ -16,21 +16,6 @@
*/
*/
abstract
class
ExecutablePluginBase
extends
ContextAwarePluginBase
implements
ExecutableInterface
{
abstract
class
ExecutablePluginBase
extends
ContextAwarePluginBase
implements
ExecutableInterface
{
/**
* The condition manager to proxy execute calls through.
*
* @var \Drupal\Component\Plugin\PluginManagerInterface
*/
protected
$executableManager
;
/**
* {@inheritdoc}
*/
public
function
setExecutableManager
(
ExecutableManagerInterface
$executableManager
)
{
$this
->
executableManager
=
$executableManager
;
return
$this
;
}
/**
/**
* Gets an array of definitions of available configuration options.
* Gets an array of definitions of available configuration options.
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment