diff --git a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php index d7c9da1..f38cf35 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php +++ b/core/modules/views/lib/Drupal/views/Plugin/Derivative/ViewsEntityRow.php @@ -29,6 +29,13 @@ class ViewsEntityRow implements ContainerDerivativeInterface { protected $derivatives = array(); /** + * The base plugin ID that the derivative is for. + * + * @var string + */ + protected $basePluginId; + + /** * The entity manager. * * @var \Drupal\Core\Entity\EntityManager diff --git a/core/modules/views/lib/Drupal/views/Plugin/ViewsPluginManager.php b/core/modules/views/lib/Drupal/views/Plugin/ViewsPluginManager.php index 3e6099e..e53e1ad 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/ViewsPluginManager.php +++ b/core/modules/views/lib/Drupal/views/Plugin/ViewsPluginManager.php @@ -8,8 +8,7 @@ namespace Drupal\views\Plugin; use Drupal\Component\Plugin\PluginManagerBase; -use Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator; -use Drupal\Component\Plugin\Factory\DefaultFactory; +use Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator; use Drupal\Component\Plugin\Discovery\ProcessDecorator; use Drupal\Core\Plugin\Discovery\AlterDecorator; use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery; @@ -32,7 +31,7 @@ class ViewsPluginManager extends PluginManagerBase { */ public function __construct($type, \Traversable $namespaces) { $this->discovery = new AnnotatedClassDiscovery("Plugin/views/$type", $namespaces); - $this->discovery = new DerivativeDiscoveryDecorator($this->discovery); + $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery); $this->discovery = new ProcessDecorator($this->discovery, array($this, 'processDefinition')); $this->discovery = new AlterDecorator($this->discovery, 'views_plugins_' . $type); $this->discovery = new CacheDecorator($this->discovery, 'views:' . $type, 'views_info');