Commit abb22d7d authored by alexpott's avatar alexpott

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

parent fd8c8cd9
......@@ -7,6 +7,7 @@
namespace Drupal\Core\Condition;
use Drupal\Core\Executable\ExecutableManagerInterface;
use Drupal\Core\Executable\ExecutablePluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait;
......@@ -24,6 +25,13 @@ abstract class ConditionPluginBase extends ExecutablePluginBase implements Condi
use ContextAwarePluginAssignmentTrait;
/**
* The condition manager to proxy execute calls through.
*
* @var \Drupal\Core\Executable\ExecutableInterface
*/
protected $executableManager;
/**
* {@inheritdoc}
*/
......@@ -107,4 +115,12 @@ public function calculateDependencies() {
return array();
}
/**
* {@inheritdoc}
*/
public function setExecutableManager(ExecutableManagerInterface $executableManager) {
$this->executableManager = $executableManager;
return $this;
}
}
......@@ -16,21 +16,6 @@
*/
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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment