Commit 38fc484e authored by webchick's avatar webchick

Issue #2204307 by EclipseGc: Move PluginBag Implementations from \Drupal\Component to \Drupal\Core.

parent dd6eb01c
......@@ -7,7 +7,7 @@
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\DefaultSinglePluginBag;
use Drupal\Core\Plugin\DefaultSinglePluginBag;
/**
* Provides a container for lazily loading Action plugins.
......
......@@ -2,12 +2,15 @@
/**
* @file
* Contains \Drupal\Component\Plugin\DefaultPluginBag.
* Contains \Drupal\Core\Plugin\DefaultPluginBag.
*/
namespace Drupal\Component\Plugin;
namespace Drupal\Core\Plugin;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
use Drupal\Component\Plugin\PluginBag;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
/**
* Provides a default plugin bag for a plugin type.
......
......@@ -2,10 +2,14 @@
/**
* @file
* Contains \Drupal\Component\Plugin\DefaultSinglePluginBag.
* Contains \Drupal\Core\Plugin\DefaultSinglePluginBag.
*/
namespace Drupal\Component\Plugin;
namespace Drupal\Core\Plugin;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Component\Plugin\PluginBag;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
/**
* Provides a default plugin bag for a plugin type.
......
......@@ -10,7 +10,7 @@
use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Component\Utility\String;
use Drupal\Component\Plugin\DefaultSinglePluginBag;
use Drupal\Core\Plugin\DefaultSinglePluginBag;
/**
* Provides a collection of block plugins.
......
......@@ -8,7 +8,7 @@
namespace Drupal\filter;
use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Plugin\DefaultPluginBag;
use Drupal\Core\Plugin\DefaultPluginBag;
/**
* A collection of filters.
......
......@@ -7,7 +7,7 @@
namespace Drupal\image;
use Drupal\Component\Plugin\DefaultPluginBag;
use Drupal\Core\Plugin\DefaultPluginBag;
/**
* A collection of image effects.
......
......@@ -7,7 +7,7 @@
namespace Drupal\search\Plugin;
use Drupal\Component\Plugin\DefaultSinglePluginBag;
use Drupal\Core\Plugin\DefaultSinglePluginBag;
use Drupal\Component\Plugin\PluginManagerInterface;
/**
......
......@@ -7,7 +7,7 @@
namespace Drupal\tour;
use Drupal\Component\Plugin\DefaultPluginBag;
use Drupal\Core\Plugin\DefaultPluginBag;
/**
* A collection of tips.
......
......@@ -9,7 +9,7 @@
use Drupal\Component\Plugin\Exception\PluginException;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Component\Plugin\DefaultPluginBag;
use Drupal\Core\Plugin\DefaultPluginBag;
/**
* A class which wraps the displays of a view so you can lazy-initialize them.
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Tests\Component\Plugin\ConfigurablePluginBagTest.
* Contains \Drupal\Tests\Core\Plugin\ConfigurablePluginBagTest.
*/
namespace Drupal\Tests\Component\Plugin;
namespace Drupal\Tests\Core\Plugin;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\PluginBase;
......@@ -14,7 +14,7 @@
* Tests the default plugin bag with configurable plugins.
*
* @see \Drupal\Component\Plugin\ConfigurablePluginInterface
* @see \Drupal\Component\Plugin\DefaultPluginBag
* @see \Drupal\Core\Plugin\DefaultPluginBag
*
* @group Drupal
* @group Drupal_Plugin
......
......@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\Tests\Component\Plugin\DefaultPluginBagTest.
* Contains \Drupal\Tests\Core\Plugin\DefaultPluginBagTest.
*/
namespace Drupal\Tests\Component\Plugin;
namespace Drupal\Tests\Core\Plugin;
/**
* Tests the default plugin bag.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag
* @see \Drupal\Core\Plugin\DefaultPluginBag
*
* @group Drupal
* @group Drupal_Plugin
......@@ -31,7 +31,7 @@ public static function getInfo() {
/**
* Tests the has method.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag::has()
* @see \Drupal\Core\Plugin\DefaultPluginBag::has()
*/
public function testHas() {
$this->setupPluginBag();
......@@ -47,7 +47,7 @@ public function testHas() {
/**
* Tests the get method.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag::get()
* @see \Drupal\Core\Plugin\DefaultPluginBag::get()
*/
public function testGet() {
$this->setupPluginBag($this->once());
......@@ -105,7 +105,7 @@ public function testSortHelper($plugin_id_1, $plugin_id_2, $expected) {
/**
* Tests the configuration getter method.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag::getConfiguration()
* @see \Drupal\Core\Plugin\DefaultPluginBag::getConfiguration()
*/
public function testGetConfiguration() {
$this->setupPluginBag($this->exactly(3));
......@@ -130,7 +130,7 @@ public function testGetConfiguration() {
/**
* Tests the removeInstanceId() method.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag::removeInstanceId()
* @see \Drupal\Core\Plugin\DefaultPluginBag::removeInstanceId()
*/
public function testRemoveInstanceId() {
$this->setupPluginBag($this->exactly(2));
......@@ -142,7 +142,7 @@ public function testRemoveInstanceId() {
/**
* Tests the setInstanceConfiguration() method.
*
* @see \Drupal\Component\Plugin\DefaultPluginBag::setInstanceConfiguration()
* @see \Drupal\Core\Plugin\DefaultPluginBag::setInstanceConfiguration()
*/
public function testSetInstanceConfiguration() {
$this->setupPluginBag($this->exactly(3));
......
......@@ -2,17 +2,17 @@
/**
* @file
* Contains \Drupal\Tests\Component\Plugin\DefaultSinglePluginBagTest.
* Contains \Drupal\Tests\Core\Plugin\DefaultSinglePluginBagTest.
*/
namespace Drupal\Tests\Component\Plugin;
namespace Drupal\Tests\Core\Plugin;
use Drupal\Component\Plugin\DefaultSinglePluginBag;
use Drupal\Core\Plugin\DefaultSinglePluginBag;
/**
* Tests the default single plugin bag.
*
* @see \Drupal\Component\Plugin\DefaultSinglePluginBag
* @see \Drupal\Core\Plugin\DefaultSinglePluginBag
*
* @group Drupal
* @group Drupal_Plugin
......
......@@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\Tests\Component\Plugin\PluginBagTestBase.
* Contains \Drupal\Tests\Core\Plugin\PluginBagTestBase.
*/
namespace Drupal\Tests\Component\Plugin;
namespace Drupal\Tests\Core\Plugin;
use Drupal\Component\Plugin\DefaultPluginBag;
use Drupal\Core\Plugin\DefaultPluginBag;
use Drupal\Tests\UnitTestCase;
/**
......@@ -25,7 +25,7 @@ abstract class PluginBagTestBase extends UnitTestCase {
/**
* The tested plugin bag.
*
* @var \Drupal\Component\Plugin\DefaultPluginBag|\PHPUnit_Framework_MockObject_MockObject
* @var \Drupal\Core\Plugin\DefaultPluginBag|\PHPUnit_Framework_MockObject_MockObject
*/
protected $defaultPluginBag;
......
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