Skip to content
Snippets Groups Projects
Commit abb22d7d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2385429 by tim.plunkett: setExecutableManager() is implemented on the wrong class

parent fd8c8cd9
No related branches found
No related tags found
No related merge requests found
...@@ -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;
}
} }
...@@ -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.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment