diff --git a/core/includes/entity.api.php b/core/includes/entity.api.php index 05175681b252ee992f6ec351ee9573bf8ce237f1..da9c1b8255ea81034d6ac72b62226a74596fbdd6 100644 --- a/core/includes/entity.api.php +++ b/core/includes/entity.api.php @@ -334,7 +334,7 @@ function hook_entity_query_alter(\Drupal\Core\Entity\Query\QueryInterface $query * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * entity components. * @param $view_mode @@ -351,7 +351,7 @@ function hook_entity_query_alter(\Drupal\Core\Entity\Query\QueryInterface $query * @see hook_node_view() * @see hook_user_view() */ -function hook_entity_view(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) { +function hook_entity_view(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { // Only do the extra work if the component is configured to be displayed. // This assumes a 'mymodule_addition' extra field has been defined for the // entity bundle in hook_field_extra_fields(). @@ -380,7 +380,7 @@ function hook_entity_view(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\e * A renderable array representing the entity content. * @param Drupal\Core\Entity\EntityInterface $entity * The entity object being rendered. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * entity components. * @@ -390,7 +390,7 @@ function hook_entity_view(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\e * @see hook_taxonomy_term_view_alter() * @see hook_user_view_alter() */ -function hook_entity_view_alter(&$build, Drupal\Core\Entity\EntityInterface $entity, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display) { +function hook_entity_view_alter(&$build, Drupal\Core\Entity\EntityInterface $entity, \Drupal\entity\Entity\EntityDisplay $display) { if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. $build['an_additional_field']['#weight'] = -10; @@ -459,7 +459,7 @@ function hook_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInter /** * Alters the settings used for displaying an entity. * - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object that will be used to display the entity * components. * @param array $context @@ -468,7 +468,7 @@ function hook_entity_view_mode_alter(&$view_mode, Drupal\Core\Entity\EntityInter * - bundle: The bundle, e.g., 'page' or 'article'. * - view_mode: The view mode, e.g. 'full', 'teaser'... */ -function hook_entity_display_alter(\Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, array $context) { +function hook_entity_display_alter(\Drupal\entity\Entity\EntityDisplay $display, array $context) { // Leave field labels out of the search index. if ($context['entity_type'] == 'node' && $context['view_mode'] == 'search_index') { foreach ($display->getComponents() as $name => $options) { @@ -508,7 +508,7 @@ function hook_entity_prepare_form(\Drupal\Core\Entity\EntityInterface $entity, $ /** * Alters the settings used for displaying an entity form. * - * @param \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay $form_display + * @param \Drupal\entity\Entity\EntityFormDisplay $form_display * The entity_form_display object that will be used to display the entity form * components. * @param array $context @@ -517,7 +517,7 @@ function hook_entity_prepare_form(\Drupal\Core\Entity\EntityInterface $entity, $ * - bundle: The bundle, e.g., 'page' or 'article'. * - form_mode: The form mode, e.g. 'default', 'profile', 'register'... */ -function hook_entity_form_display_alter(\Drupal\entity\Plugin\Core\Entity\EntityFormDisplay $form_display, array $context) { +function hook_entity_form_display_alter(\Drupal\entity\Entity\EntityFormDisplay $form_display, array $context) { // Hide the 'user_picture' field from the register form. if ($context['entity_type'] == 'user' && $context['form_mode'] == 'register') { $form_display->setComponent('user_picture', array( @@ -648,7 +648,7 @@ function hook_entity_field_access($operation, $field, \Drupal\Core\Session\Accou * - operation: The operation to be performed (string). * - field: The entity field object (\Drupal\Core\Entity\Field\Field). * - account: The user account to check access for - * (Drupal\user\Plugin\Core\Entity\User). + * (Drupal\user\Entity\User). */ function hook_entity_field_access_alter(array &$grants, array $context) { $field = $context['field']; diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 7822d7aa2d4afdc3fabeb0479ca27fefa37ffcc2..8071a0db004dd1365dde65bd8057dce54878e285 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -293,7 +293,7 @@ function entity_load_by_uuid($entity_type, $uuid, $reset = FALSE) { * can either implement the Drupal\Core\Entity\EntityStorageControllerInterface * interface, or, most commonly, extend the * Drupal\Core\Entity\DatabaseStorageController class. - * See Drupal\node\Plugin\Core\Entity\Node and Drupal\node\NodeStorageController + * See Drupal\node\Entity\Node and Drupal\node\NodeStorageController * for an example. * * @param string $entity_type @@ -689,7 +689,7 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL) { * The view mode, or 'default' to retrieve the 'default' display object for * this bundle. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityDisplay + * @return \Drupal\entity\Entity\EntityDisplay * The display object associated to the view mode. */ function entity_get_display($entity_type, $bundle, $view_mode) { @@ -731,7 +731,7 @@ function entity_get_display($entity_type, $bundle, $view_mode) { * @param string $view_mode * The view mode being rendered. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityDisplay + * @return \Drupal\entity\Entity\EntityDisplay * The display object that should be used to render the entity. * * @see entity_get_display(). @@ -784,7 +784,7 @@ function entity_get_render_display(EntityInterface $entity, $view_mode) { * @param string $form_mode * The form mode. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay + * @return \Drupal\entity\Entity\EntityFormDisplay * The EntityFormDisplay object associated to the form mode. */ function entity_get_form_display($entity_type, $bundle, $form_mode) { @@ -822,7 +822,7 @@ function entity_get_form_display($entity_type, $bundle, $form_mode) { * @param string $form_mode * The form mode being rendered. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay + * @return \Drupal\entity\Entity\EntityFormDisplay * The form display object that should be used to render the entity form. * * @see entity_get_form_display(). diff --git a/core/includes/menu.inc b/core/includes/menu.inc index 248659410e60336f94b11554fd41f1dcd37b99ee..d205ac08f9e2f8368e02e9849fb8d196322ae892 100644 --- a/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -9,7 +9,7 @@ use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Language\Language; use Drupal\Core\Template\Attribute; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Drupal\menu_link\MenuLinkStorageController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index a662259fadeb7c6d90f6c4b3f3d41c21c44e0775..5321099b8a596a21e2dd21cf059d2ecff2e5c883 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -112,7 +112,7 @@ public function __construct(\Traversable $namespaces, ContainerInterface $contai $this->cache = $cache; $this->languageManager = $language_manager; - $this->discovery = new AnnotatedClassDiscovery('Plugin/Core/Entity', $namespaces, $annotation_namespaces, 'Drupal\Core\Entity\Annotation\EntityType'); + $this->discovery = new AnnotatedClassDiscovery('Entity', $namespaces, $annotation_namespaces, 'Drupal\Core\Entity\Annotation\EntityType'); $this->discovery = new InfoHookDecorator($this->discovery, 'entity_info'); $this->discovery = new AlterDecorator($this->discovery, 'entity_info'); $this->discovery = new CacheDecorator($this->discovery, 'entity_info:' . $this->languageManager->getLanguage(Language::TYPE_INTERFACE)->id, 'cache', CacheBackendInterface::CACHE_PERMANENT, array('entity_info' => TRUE)); diff --git a/core/lib/Drupal/Core/Entity/EntityRenderController.php b/core/lib/Drupal/Core/Entity/EntityRenderController.php index cd92f52cfd4c855cb515cc38428f41b1fcc3bf10..860c0446a2f23a9a1d0f4ac2847ad4df868a064d 100644 --- a/core/lib/Drupal/Core/Entity/EntityRenderController.php +++ b/core/lib/Drupal/Core/Entity/EntityRenderController.php @@ -6,7 +6,7 @@ */ namespace Drupal\Core\Entity; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\Core\Language\Language; @@ -72,7 +72,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode, $langco * The render array that is being created. * @param \Drupal\Core\Entity\EntityInterface $entity * The entity to be prepared. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for * the entity components. * @param string $view_mode diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php index 2f7156adb4ec276228241dbe642bc2517f8d7e15..9740e8a2657439e6e2cc87910e8bea8d0518a31f 100644 --- a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php +++ b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php @@ -10,7 +10,7 @@ use Drupal\Core\Database\Query\SelectInterface; use Drupal\Core\Entity\Plugin\DataType\EntityReference; use Drupal\Core\Entity\Query\QueryException; -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Adds tables and fields to the SQL entity query. diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index a46971e6fa36462148d70407b3bdd40a7b084663..e5321d4362fd065eb9a526e5d791c10cf009fc7e 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -5,7 +5,7 @@ * Used to aggregate syndicated content (RSS, RDF, and Atom). */ -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\Component\Plugin\Exception\PluginException; /** @@ -346,7 +346,7 @@ function aggregator_save_category($edit) { /** * Checks a news feed for new items. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * An object describing the feed to be refreshed. */ function aggregator_refresh(Feed $feed) { @@ -435,7 +435,7 @@ function aggregator_refresh(Feed $feed) { * @param int $fid * The feed id. * - * @return \Drupal\aggregator\Plugin\Core\Entity\Feed + * @return \Drupal\aggregator\Entity\Feed * An object describing the feed. */ function aggregator_feed_load($fid) { diff --git a/core/modules/aggregator/aggregator.pages.inc b/core/modules/aggregator/aggregator.pages.inc index 6579703d1a8810ea296522b9ac4662c3fce8d8fd..7ab756c70d833c38cdb0af8c046aab99c8b97819 100644 --- a/core/modules/aggregator/aggregator.pages.inc +++ b/core/modules/aggregator/aggregator.pages.inc @@ -5,13 +5,13 @@ * User page callbacks for the Aggregator module. */ -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\Core\Entity\EntityInterface; /** * Page callback: Displays all the items captured from the particular feed. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * The feed for which to display all items. * * @return string @@ -369,7 +369,7 @@ function theme_aggregator_page_opml($variables) { * * @param array $variables * An associative array containing: - * - source: A Drupal\aggregator\Plugin\Core\Entity\Feed instance representing + * - source: A Drupal\aggregator\Entity\Feed instance representing * the feed source. * - summary_items: An array of feed items. */ @@ -423,7 +423,7 @@ function template_preprocess_aggregator_summary_item(&$variables) { * * @param array $variables * An associative array containing: - * - aggregator_feed: A Drupal\aggregator\Plugin\Core\Entity\Feed instance + * - aggregator_feed: A Drupal\aggregator\Entity\Feed instance * representing the feed source. */ function template_preprocess_aggregator_feed_source(&$variables) { diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php similarity index 98% rename from core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php rename to core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php index bf2ecc3ba11b493ecfc44054073db20707b24129..ceabe5a4b496da2a013a1b9f5ee404c8939d8730 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Feed.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\aggregator\Plugin\Core\Entity\Feed. + * Contains \Drupal\aggregator\Entity\Feed. */ -namespace Drupal\aggregator\Plugin\Core\Entity; +namespace Drupal\aggregator\Entity; use Drupal\Core\Entity\EntityNG; use Symfony\Component\DependencyInjection\Container; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php similarity index 96% rename from core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php rename to core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php index 6da20f30bcad6a8a3d9e79c0b3c65a4482704a0a..b22e738e60c174c59e44e017727fd4de0813ac16 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Core/Entity/Item.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\aggregator\Plugin\Core\Entity\Item. + * Contains \Drupal\aggregator\Entity\Item. */ -namespace Drupal\aggregator\Plugin\Core\Entity; +namespace Drupal\aggregator\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedInterface.php index a01f20a93d5ebd916d55b6789a9880a5aa06c3ef..3cccaec7ee049d4d5bffe87980c061c5e343b504 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\aggregator\Plugin\Core\Entity\FeedInterface. + * Contains \Drupal\aggregator\Entity\FeedInterface. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php index b54a7d6d52d9a885cc14e918c7880190166f0524..7b6be0a72103e53f7cbef442e5cc817990f3af5a 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageController.php @@ -8,7 +8,7 @@ namespace Drupal\aggregator; use Drupal\Core\Entity\DatabaseStorageControllerNG; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\Core\Entity\EntityInterface; /** diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageControllerInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageControllerInterface.php index 24545ca4ad2ba517a0b58d7874ec6e34c6c36b55..c991b0f29a6927d03f3780d2e855184cb6098c57 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageControllerInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedStorageControllerInterface.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\Core\Entity\EntityStorageControllerInterface; /** diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemInterface.php index 5228925288f8abcb830f8e248b75bce2cbcf7914..9ad17a2cdd0d05676adc348386845fc74c3f0842 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\aggregator\Plugin\Core\Entity\ItemInterface. + * Contains \Drupal\aggregator\Entity\ItemInterface. */ namespace Drupal\aggregator; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php index 31f4a973a5c89e7f1daf06f1d314800b0d4a9bb4..ede61e1b9e8a4f1e5a67c69e9e2111512e410347 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageController.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator; -use Drupal\aggregator\Plugin\Core\Entity\Item; +use Drupal\aggregator\Entity\Item; use Drupal\Core\Database\Query\PagerSelectExtender; use Drupal\Core\Database\Query\SelectInterface; use Drupal\Core\Entity\DatabaseStorageControllerNG; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageControllerInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageControllerInterface.php index da9597d78fac9135e0c8de8c7d275b2f7f1accef..0476cc71c289634e91449254008cc7449947e4c3 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageControllerInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/ItemStorageControllerInterface.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator; -use Drupal\aggregator\Plugin\Core\Entity\Item; +use Drupal\aggregator\Entity\Item; use Drupal\core\Entity\EntityStorageControllerInterface; /** diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php index da1377d82ffea5ec06200cc978050dc44ec0dbd0..f497b36b756a2fe4916cc5fee6b11210980d7071 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator\Plugin; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; /** * Defines an interface for aggregator fetcher implementations. @@ -23,7 +23,7 @@ interface FetcherInterface { /** * Downloads feed data. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * A feed object representing the resource to be downloaded. * $feed->url->value contains the link to the feed. * Download the data at the URL and expose it diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ParserInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ParserInterface.php index 317b806a4dbcda1125c2bfea71860434c0e3e49d..9b945e65ddcd5877e0cb1e3625e001f4ebf17947 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ParserInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ParserInterface.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator\Plugin; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; /** * Defines an interface for aggregator parser implementations. @@ -24,7 +24,7 @@ interface ParserInterface { /** * Parses feed data. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * An object describing the resource to be parsed. * $feed->source_string->value contains the raw feed data. Parse the data * and add the following properties to the $feed object: diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ProcessorInterface.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ProcessorInterface.php index b67038380081a1a3f96b35e79c0295a7e2e86055..d635f868e42dd1a85326d9dc58c572f0653996a9 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ProcessorInterface.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/ProcessorInterface.php @@ -7,7 +7,7 @@ namespace Drupal\aggregator\Plugin; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; /** * Defines an interface for aggregator processor implementations. @@ -48,7 +48,7 @@ public function settingsSubmit(array $form, array &$form_state); /** * Processes feed data. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * A feed object representing the resource to be processed. * $feed->items contains an array of feed items downloaded and parsed at the * parsing stage. See \Drupal\aggregator\Plugin\FetcherInterface::parse() @@ -64,7 +64,7 @@ public function process(Feed $feed); * Called after the processing of the feed is completed by all selected * processors. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Object describing feed. * * @see aggregator_refresh() @@ -77,7 +77,7 @@ public function postProcess(Feed $feed); * Called by aggregator if either a feed is deleted or a user clicks on * "remove items". * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * The $feed object whose items are being removed. * */ diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php index 7055c3f4f1c08d775f03401ff4dcbe61c34fd361..986d66e94035aeea918a4145fb147c48fd751fbc 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php @@ -8,7 +8,7 @@ namespace Drupal\aggregator\Plugin\aggregator\fetcher; use Drupal\aggregator\Plugin\FetcherInterface; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Annotation\AggregatorFetcher; use Drupal\Core\Annotation\Translation; use Guzzle\Http\Exception\BadResponseException; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/parser/DefaultParser.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/parser/DefaultParser.php index b21b9f5eb9291d1ca17ead0f792558da1293e7d0..9b2bcb0c46f4d4829c447d5d7eb7bb9b5dad6e6c 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/parser/DefaultParser.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/parser/DefaultParser.php @@ -8,7 +8,7 @@ namespace Drupal\aggregator\Plugin\aggregator\parser; use Drupal\aggregator\Plugin\ParserInterface; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Annotation\AggregatorParser; use Drupal\Core\Annotation\Translation; use Drupal\Core\Cache\Cache; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/processor/DefaultProcessor.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/processor/DefaultProcessor.php index 9085fc193d52b6cc1345f9e302fc19315125b744..eefadcd5a6b6760a3afff6c102bc84868a86c4c9 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/processor/DefaultProcessor.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/processor/DefaultProcessor.php @@ -9,7 +9,7 @@ use Drupal\Component\Plugin\PluginBase; use Drupal\aggregator\Plugin\ProcessorInterface; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Annotation\AggregatorProcessor; use Drupal\Core\Annotation\Translation; use Drupal\Core\Database\Database; diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php index ae2d1984ec50ddf4ba650a5477c7c5fd25da911c..1f1674f253a7964a5fe7513a9d7e3feaae2bfc9e 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php @@ -9,7 +9,7 @@ use Drupal\Core\Language\Language; use Drupal\simpletest\WebTestBase; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; /** * Defines a base class for testing the Aggregator module. @@ -47,7 +47,7 @@ function setUp() { * @param array $edit * Array with additional form fields. * - * @return \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @return \Drupal\aggregator\Entity\Feed $feed * Full feed object if possible. * * @see getFeedEditArray() @@ -65,7 +65,7 @@ function createFeed($feed_url = NULL, array $edit = array()) { /** * Deletes an aggregator feed. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Feed object representing the feed. */ function deleteFeed(Feed $feed) { @@ -110,7 +110,7 @@ function getFeedEditArray($feed_url = NULL, array $edit = array()) { * @param array $values * (optional) Default values to initialize object properties with. * - * @return \Drupal\aggregator\Plugin\Core\Entity\Feed + * @return \Drupal\aggregator\Entity\Feed * A feed object. */ function getFeedEditObject($feed_url = NULL, array $values = array()) { @@ -147,7 +147,7 @@ function getDefaultFeedItemCount() { * This method simulates a click to * admin/config/services/aggregator/update/$fid. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Feed object representing the feed. * @param int|null $expected_count * Expected number of feed items. If omitted no check will happen. @@ -182,7 +182,7 @@ function updateFeedItems(Feed $feed, $expected_count = NULL) { /** * Confirms an item removal from a feed. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Feed object representing the feed. */ function removeFeedItems(Feed $feed) { @@ -193,7 +193,7 @@ function removeFeedItems(Feed $feed) { /** * Adds and removes feed items and ensure that the count is zero. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Feed object representing the feed. * @param int $expected_count * Expected number of feed items. @@ -210,7 +210,7 @@ function updateAndRemove(Feed $feed, $expected_count) { /** * Pulls feed categories from {aggregator_category_feed} table. * - * @param \Drupal\aggregator\Plugin\Core\Entity\Feed $feed + * @param \Drupal\aggregator\Entity\Feed $feed * Feed object representing the feed. */ function getFeedCategories(Feed $feed) { diff --git a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/fetcher/TestFetcher.php b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/fetcher/TestFetcher.php index 8e69f8d5a9a4466a6632b132a4e23718da5023b9..42c62bd1654a5fb82f3f27eb2407e1d73b4e8e67 100644 --- a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/fetcher/TestFetcher.php +++ b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/fetcher/TestFetcher.php @@ -9,7 +9,7 @@ use Drupal\aggregator\Plugin\FetcherInterface; use Drupal\aggregator\Plugin\aggregator\fetcher\DefaultFetcher; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Annotation\AggregatorFetcher; use Drupal\Core\Annotation\Translation; use Guzzle\Http\Exception\BadResponseException; diff --git a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/parser/TestParser.php b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/parser/TestParser.php index a9ab57cc8a6614bcf4cd15032c137bb1ca516034..e12d0984eca5fce45a0f745f31f6d8731f4c86c4 100644 --- a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/parser/TestParser.php +++ b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/parser/TestParser.php @@ -8,7 +8,7 @@ namespace Drupal\aggregator_test\Plugin\aggregator\parser; use Drupal\aggregator\Plugin\ParserInterface; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Plugin\aggregator\parser\DefaultParser; use Drupal\aggregator\Annotation\AggregatorParser; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/processor/TestProcessor.php b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/processor/TestProcessor.php index 85738b8220ebcd80c31ce9b4445c07cac15154e6..f6f605d702d3f2f92f82b1f68f42f6953a0bc804 100644 --- a/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/processor/TestProcessor.php +++ b/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/processor/TestProcessor.php @@ -9,7 +9,7 @@ use Drupal\Component\Plugin\PluginBase; use Drupal\aggregator\Plugin\ProcessorInterface; -use Drupal\aggregator\Plugin\Core\Entity\Feed; +use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Annotation\AggregatorProcessor; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/block/block.admin.inc b/core/modules/block/block.admin.inc index f849833b2318107f04dd327d29391e8c634d2382..0f6ea1e3d360dbb6f478dd02719b4b47b9524562 100644 --- a/core/modules/block/block.admin.inc +++ b/core/modules/block/block.admin.inc @@ -5,7 +5,7 @@ * Admin page callbacks for the block module. */ -use Drupal\block\Plugin\Core\Entity\Block; +use Drupal\block\Entity\Block; use Drupal\Core\Template\Attribute; /** diff --git a/core/modules/block/block.api.php b/core/modules/block/block.api.php index 93a113a7743eca503aab82ba9b33d315c9dd4cf8..b7c3dab76b3d8befc6b43fe9d61b09468682bb4b 100644 --- a/core/modules/block/block.api.php +++ b/core/modules/block/block.api.php @@ -74,11 +74,11 @@ function hook_block_view_BASE_BLOCK_ID_alter(array &$build, \Drupal\block\BlockP * Modules may implement this hook if they want to have a say in whether or not * a given user has access to perform a given operation on a block instance. * - * @param \Drupal\block\Plugin\Core\Entity\Block $block + * @param \Drupal\block\Entity\Block $block * The block instance. * @param string $operation * The operation to be performed, e.g., 'view', 'create', 'delete', 'update'. - * @param \Drupal\user\Plugin\Core\Entity\User $account + * @param \Drupal\user\Entity\User $account * The user object to perform the access check operation on. * @param string $langcode * The language code to perform the access check operation on. @@ -91,7 +91,7 @@ function hook_block_view_BASE_BLOCK_ID_alter(array &$build, \Drupal\block\BlockP * @see \Drupal\Core\Entity\EntityAccessController::access() * @see \Drupal\block\BlockAccessController::checkAccess() */ -function hook_block_access(\Drupal\block\Plugin\Core\Entity\Block $block, $operation, \Drupal\user\Plugin\Core\Entity\User $account, $langcode) { +function hook_block_access(\Drupal\block\Entity\Block $block, $operation, \Drupal\user\Entity\User $account, $langcode) { // Example code that would prevent displaying the 'Powered by Drupal' block in // a region different than the footer. if ($operation == 'view' && $block->get('plugin') == 'system_powered_by_block' && $block->get('region') != 'footer') { diff --git a/core/modules/block/block.module b/core/modules/block/block.module index 361a33a00f96b020fa9a00839de9e1fb39473972..c50738f210112c94fd8b8354ad7457b77d3b1c0b 100644 --- a/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -453,7 +453,7 @@ function block_list($region) { * @param string $entity_id * The block ID. * - * @return \Drupal\block\Plugin\Core\Entity\Block + * @return \Drupal\block\Entity\Block * The loaded block object. */ function block_load($entity_id) { diff --git a/core/modules/block/custom_block/custom_block.module b/core/modules/block/custom_block/custom_block.module index 0af90772ba80550a01c62001dc538563b7771172..b8da16f219ed44792c9afddf98f6c85b018da844 100644 --- a/core/modules/block/custom_block/custom_block.module +++ b/core/modules/block/custom_block/custom_block.module @@ -5,8 +5,8 @@ * Allows the creaation of custom blocks through the user interface. */ -use Drupal\custom_block\Plugin\Core\Entity\CustomBlockType; -use Drupal\custom_block\Plugin\Core\Entity\CustomBlock; +use Drupal\custom_block\Entity\CustomBlockType; +use Drupal\custom_block\Entity\CustomBlock; /** * Implements hook_help(). @@ -152,7 +152,7 @@ function custom_block_theme($existing, $type, $theme, $path) { * @param int $id * The ID of the custom block type to load. * - * @return \Drupal\custom_block\Plugin\Core\Entity\CustomBlockType|null + * @return \Drupal\custom_block\Entity\CustomBlockType|null * A CustomBlockType object or NULL if the requested $id does not exist. */ function custom_block_type_load($id) { @@ -165,7 +165,7 @@ function custom_block_type_load($id) { * @param int $id * The id of the custom block. * - * @return \Drupal\custom_block\Plugin\Core\Entity\CustomBlock|null + * @return \Drupal\custom_block\Entity\CustomBlock|null * A CustomBlock object or NULL if the requested $id does not exist. */ function custom_block_load($id) { diff --git a/core/modules/block/custom_block/custom_block.pages.inc b/core/modules/block/custom_block/custom_block.pages.inc index e50b297ddc34a9a5648db8b8dc624c851a8bed6b..3732b2540e0beadeb8c84cb6c7de208edf441da1 100644 --- a/core/modules/block/custom_block/custom_block.pages.inc +++ b/core/modules/block/custom_block/custom_block.pages.inc @@ -5,8 +5,8 @@ * Provides page callbacks for custom blocks. */ -use Drupal\custom_block\Plugin\Core\Entity\CustomBlockType; -use Drupal\custom_block\Plugin\Core\Entity\CustomBlock; +use Drupal\custom_block\Entity\CustomBlockType; +use Drupal\custom_block\Entity\CustomBlock; use Symfony\Component\HttpFoundation\RedirectResponse; /** @@ -39,7 +39,7 @@ function template_preprocess_custom_block_add_list(&$variables) { /** * Page callback: Form constructor for the custom block deletion form. * - * @param Drupal\custom_block\Plugin\Core\Entity\CustomBlock $block + * @param Drupal\custom_block\Entity\CustomBlock $block * The custom block to be deleted. * * @see custom_block_menu() diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockInterface.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockInterface.php index e650389b53c49b66630ee42a0be0f0300c061cd3..23e07e00bad6296bba5e20f9674966fdf6e7cbe3 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockInterface.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\custom_block\Plugin\Core\Entity\CustomBlockInterface. + * Contains \Drupal\custom_block\Entity\CustomBlockInterface. */ namespace Drupal\custom_block; diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockRenderController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockRenderController.php index 00fa8ec6242e3896d201bde0260600bbdc25a5b7..3457115b34e79bf600acc16953b96f4d7a2f9b4e 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockRenderController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockRenderController.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityRenderController; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; /** * Render controller for custom blocks. diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeInterface.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeInterface.php index fbbcd0c2397bcbb21eaafe84bcbb2ed7b9b2be34..53bfe1b84634b1b18c09d9883a81cb56435e8239 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeInterface.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\custom_block\Plugin\Core\Entity\CustomBlockTypeInterface. + * Contains \Drupal\custom_block\Entity\CustomBlockTypeInterface. */ namespace Drupal\custom_block; diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php similarity index 98% rename from core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php rename to core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php index 97722f60d19dd74981fcea57536b084c7508994e..a7b36249a0cd1f03dcf0aa98c1c0a799b9239c59 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlock.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\custom_block\Plugin\Core\Entity\CustomBlock. + * Contains \Drupal\custom_block\Entity\CustomBlock. */ -namespace Drupal\custom_block\Plugin\Core\Entity; +namespace Drupal\custom_block\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlockType.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php similarity index 95% rename from core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlockType.php rename to core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php index 685e370b0211708b7b19a2e5d3253ec05219d5c2..ec51ca46fd2d3376c7ea25d721373bb03d5ca98e 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Core/Entity/CustomBlockType.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\custom_block\Plugin\Core\Entity\CustomBlockType. + * Contains \Drupal\custom_block\Entity\CustomBlockType. */ -namespace Drupal\custom_block\Plugin\Core\Entity; +namespace Drupal\custom_block\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php index 7c1d7d5c02a825f01db3b8892b033d60b5779caa..c59b43542ee62f7e9dca431af067f73dbf643f83 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockFieldTest.php @@ -25,21 +25,21 @@ class CustomBlockFieldTest extends CustomBlockTestBase { /** * The created field. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The created instance. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; /** * The block type. * - * @var \Drupal\custom_block\Plugin\Core\Entity\CustomBlockType + * @var \Drupal\custom_block\Entity\CustomBlockType */ protected $blockType; diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTestBase.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTestBase.php index 55d6bb94424b65748e08ed1b04b26e047322615d..54c89c8cae164e0c8303bb8a3dccafd0edd6312d 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTestBase.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTestBase.php @@ -59,7 +59,7 @@ protected function setUp() { * @param string $bundle * (optional) Bundle name. Defaults to 'basic'. * - * @return Drupal\custom_block\Plugin\Core\Entity\CustomBlock + * @return Drupal\custom_block\Entity\CustomBlock * Created custom block. */ protected function createCustomBlock($title = FALSE, $bundle = 'basic') { @@ -80,7 +80,7 @@ protected function createCustomBlock($title = FALSE, $bundle = 'basic') { * @param string $label * The block type label. * - * @return Drupal\custom_block\Plugin\Core\Entity\CustomBlockType + * @return Drupal\custom_block\Entity\CustomBlockType * Created custom block type. */ protected function createCustomBlockType($label) { diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTranslationUITest.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTranslationUITest.php index dbb9aba318b6603f1df29b3a872cc04dcf212de9..77d14b129e80ba333237bd1fe3e6263adf675df6 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTranslationUITest.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Tests/CustomBlockTranslationUITest.php @@ -8,7 +8,7 @@ namespace Drupal\custom_block\Tests; use Drupal\content_translation\Tests\ContentTranslationUITest; -use Drupal\custom_block\Plugin\Core\Entity\CustomBlock; +use Drupal\custom_block\Entity\CustomBlock; /** * Tests the Custom Block Translation UI. @@ -77,7 +77,7 @@ public function getTranslatorPermissions() { * (optional) Bundle name. When no value is given, defaults to * $this->bundle. Defaults to FALSE. * - * @return Drupal\custom_block\Plugin\Core\Entity\CustomBlock + * @return Drupal\custom_block\Entity\CustomBlock * Created custom block. */ protected function createCustomBlock($title = FALSE, $bundle = FALSE) { diff --git a/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module b/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module index a2961fc641fb70a03585281f01f77ad5d2f7a648..e649f54494425ccfc915adaee6830b9401372d3f 100644 --- a/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module +++ b/core/modules/block/custom_block/tests/modules/custom_block_test/custom_block_test.module @@ -8,7 +8,7 @@ * interaction with the custom_block module. */ -use Drupal\custom_block\Plugin\Core\Entity\CustomBlock; +use Drupal\custom_block\Entity\CustomBlock; /** * Implements hook_custom_block_load(). diff --git a/core/modules/block/lib/Drupal/block/BlockInterface.php b/core/modules/block/lib/Drupal/block/BlockInterface.php index d06f708ef4f1e17056bd2ed92e78a065503a3805..0ffbcfcd7994d3f8981f84d0af2b422ca642635e 100644 --- a/core/modules/block/lib/Drupal/block/BlockInterface.php +++ b/core/modules/block/lib/Drupal/block/BlockInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\block\Plugin\Core\Entity\BlockInterface. + * Contains \Drupal\block\Entity\BlockInterface. */ namespace Drupal\block; diff --git a/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php b/core/modules/block/lib/Drupal/block/Entity/Block.php similarity index 97% rename from core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php rename to core/modules/block/lib/Drupal/block/Entity/Block.php index e9ee314d4e1e2d5a4eff98636d8c07f3e91a016b..e465455b4478c0e7f9c7975a0a58df21fdcc723a 100644 --- a/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php +++ b/core/modules/block/lib/Drupal/block/Entity/Block.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\block\Plugin\Core\Entity\Block. + * Contains \Drupal\block\Entity\Block. */ -namespace Drupal\block\Plugin\Core\Entity; +namespace Drupal\block\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php index d787a3d48f30f8408f436a5287c0c83e7844693a..1b9c6df91d49a2a2eb37f723c936980700e7feaf 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php @@ -13,7 +13,7 @@ use Drupal\Component\Plugin\Exception\PluginException; use Drupal\block\BlockStorageController; use Drupal\Core\Entity\EntityMalformedException; -use Drupal\block\Plugin\Core\Entity\Block; +use Drupal\block\Entity\Block; use Drupal\block\BlockInterface; /** diff --git a/core/modules/book/book.module b/core/modules/book/book.module index 42499462b66d5938589cac7c32e14a316f8dbb45..e9e863e785cd9fcffdeea43f6ddd2ba5b8cce766 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -8,9 +8,9 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\node\NodeTypeInterface; use Drupal\Core\Language\Language; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\Core\Template\Attribute; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Drupal\menu_link\MenuLinkStorageController; use Drupal\node\NodeInterface; @@ -220,7 +220,7 @@ function book_menu() { /** * Access callback: Determines if the book export page is accessible. * - * @param \Drupal\node\Plugin\Core\Entity\EntityInterface $node + * @param \Drupal\node\Entity\EntityInterface $node * The node whose export page is to be viewed. */ function book_export_access(EntityInterface $node) { diff --git a/core/modules/book/book.pages.inc b/core/modules/book/book.pages.inc index 4cd7e2512b5d62b0ffe6818d41c9729bb23921ac..31410a7679268bf1ac1194364a0c4c998227f241 100644 --- a/core/modules/book/book.pages.inc +++ b/core/modules/book/book.pages.inc @@ -22,7 +22,7 @@ * currently supported in book module: * - html: Printer-friendly HTML. * Other types may be supported in contributed modules. - * @param \Drupal\node\Plugin\Core\Entity\EntityInterface $node + * @param \Drupal\node\Entity\EntityInterface $node * The node to export. * * @return @@ -57,7 +57,7 @@ function book_export($type, EntityInterface $node) { * look like level 3 sections, no matter their depth relative to the node * selected to be exported as printer-friendly HTML. * - * @param \Drupal\node\Plugin\Core\Entity\Node + * @param \Drupal\node\Entity\Node * The node to export. * * @return diff --git a/core/modules/breakpoint/breakpoint.module b/core/modules/breakpoint/breakpoint.module index 6cda5e9a9e3153af242e19ab2c374446f6b7b553..f4aebc88ec85b1b8bcb7ae5cf7195ee3df666aa4 100644 --- a/core/modules/breakpoint/breakpoint.module +++ b/core/modules/breakpoint/breakpoint.module @@ -5,8 +5,8 @@ * Manage breakpoints and breakpoint groups for responsive designs. */ -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; -use Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup; +use Drupal\breakpoint\Entity\Breakpoint; +use Drupal\breakpoint\Entity\BreakpointGroup; use Drupal\Core\Config\Entity\ConfigStorageController; /** @@ -294,7 +294,7 @@ function breakpoint_get_module_media_queries($module) { * @param string $id * The id of the breakpoint group to load. * - * @return \Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup|null + * @return \Drupal\breakpoint\Entity\BreakpointGroup|null * The breakpoint group, or NULL if there is no entity with the given id. * * @todo Remove this in a follow-up issue. @@ -310,7 +310,7 @@ function breakpoint_group_load($id) { * @param int $id * The id of the breakpoint to load. * - * @return \Drupal\breakpoint\Plugin\Core\Entity\Breakpoint|null + * @return \Drupal\breakpoint\Entity\Breakpoint|null * The entity object, or NULL if there is no entity with the given id. * * @todo Remove this in a follow-up issue. @@ -364,7 +364,7 @@ function breakpoint_select_options() { * @param string $source_type * Either Breakpoint::SOURCE_TYPE_THEME or Breakpoint::SOURCE_TYPE_MODULE. * - * @return Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup + * @return Drupal\breakpoint\Entity\BreakpointGroup * * @see _breakpoint_import_media_queries() * @see _breakpoint_import_breakpoint_groups() diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointGroupInterface.php b/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointGroupInterface.php index 3f441e948b4d501bd9062cfe514d88eb6f20a5bf..59833ff74e98835b87862e8ebc378ecb763ddf9f 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointGroupInterface.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointGroupInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroupInterface. + * Contains \Drupal\breakpoint\Entity\BreakpointGroupInterface. */ namespace Drupal\breakpoint; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointInterface.php b/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointInterface.php index ccde947b56faee03cc80abe99583b8cd60258173..cf62bcd9d3b50e9e80b07808fc6f40440692e364 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointInterface.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\breakpoint\Plugin\Core\Entity\BreakpointInterface. + * Contains \Drupal\breakpoint\Entity\BreakpointInterface. */ namespace Drupal\breakpoint; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/Breakpoint.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php similarity index 98% rename from core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/Breakpoint.php rename to core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php index 59c87e9ce1649a9eabb6b9b8e9a8daff7e4b1c2d..e8f72942114910e91ac6b67540d369d556306bd8 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/Breakpoint.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/Breakpoint.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\breakpoint\Plugin\Core\Entity\Breakpoint. + * Definition of Drupal\breakpoint\Entity\Breakpoint. */ -namespace Drupal\breakpoint\Plugin\Core\Entity; +namespace Drupal\breakpoint\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\breakpoint\BreakpointInterface; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php similarity index 96% rename from core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php rename to core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php index 4a34ce290354116c7250e64f9ce1260448263032..774890d3b6916c6805387f4dc0a939a2b32ed7bd 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Entity/BreakpointGroup.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup. + * Definition of Drupal\breakpoint\Entity\BreakpointGroup. */ -namespace Drupal\breakpoint\Plugin\Core\Entity; +namespace Drupal\breakpoint\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\breakpoint\BreakpointGroupInterface; @@ -68,7 +68,7 @@ class BreakpointGroup extends ConfigEntityBase implements BreakpointGroupInterfa * @var array * Array containing all breakpoints of this group. * - * @see Drupal\breakpoint\Plugin\Core\Entity\Breakpoint + * @see Drupal\breakpoint\Entity\Breakpoint */ public $breakpoints = array(); @@ -89,7 +89,7 @@ class BreakpointGroup extends ConfigEntityBase implements BreakpointGroupInterfa * Breakpoint::SOURCE_TYPE_MODULE * Breakpoint::SOURCE_TYPE_USER_DEFINED * - * @see Drupal\breakpoint\Plugin\Core\Entity\Breakpoint + * @see Drupal\breakpoint\Entity\Breakpoint */ public $sourceType = Breakpoint::SOURCE_TYPE_USER_DEFINED; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php index f65b559ac0fa4edff90281411b000b3c97e1384f..85d0711fc17dea6adc9547c95b50ac3afc4a1e20 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php @@ -7,7 +7,7 @@ namespace Drupal\breakpoint\Tests; use Drupal\breakpoint\Tests\BreakpointsTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; use Drupal\breakpoint\InvalidBreakpointNameException; use Drupal\breakpoint\InvalidBreakpointSourceException; use Drupal\breakpoint\InvalidBreakpointSourceTypeException; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php index 37caff79c2c52de70119e9bd04ddd6bc5d17436f..43588699f13d092c40598c83c71a03c4fe4a81f9 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php @@ -7,7 +7,7 @@ namespace Drupal\breakpoint\Tests; use Drupal\breakpoint\Tests\BreakpointTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; /** * Tests for breakpoint CRUD operations. diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php index d2bc016139e2829b55fb363fe5a8a660254c055b..3751c813b659625ce65653c903af0ba13f32421c 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php @@ -7,8 +7,8 @@ namespace Drupal\breakpoint\Tests; use Drupal\breakpoint\Tests\BreakpointsTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\BreakpointGroup; +use Drupal\breakpoint\Entity\Breakpoint; use Drupal\breakpoint\InvalidBreakpointNameException; use Drupal\breakpoint\InvalidBreakpointSourceException; use Drupal\breakpoint\InvalidBreakpointSourceTypeException; diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupCRUDTest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupCRUDTest.php index 05eaeafbc388dbb4d02fb67a234f11ea0464c0aa..bd5a2a841ff3d905d58d29fd79f6e34c6885b9c7 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupCRUDTest.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupCRUDTest.php @@ -7,8 +7,8 @@ namespace Drupal\breakpoint\Tests; use Drupal\breakpoint\Tests\BreakpointGroupTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\BreakpointGroup; +use Drupal\breakpoint\Entity\Breakpoint; /** * Tests for breakpoint group CRUD operations. diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupTestBase.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupTestBase.php index ee1e57dd758f0e8c0ebf37c0c65aac3702a30170..0f7e471788cdf0a491acb3d052e69b4179790cc3 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupTestBase.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupTestBase.php @@ -7,7 +7,7 @@ namespace Drupal\breakpoint\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup; +use Drupal\breakpoint\Entity\BreakpointGroup; /** * Base class for Breakpoint group tests. diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointTestBase.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointTestBase.php index cca4d62e08a71f4df4be5e74a01060ebaa6f62fd..89d0cc1bf5635dcb842bced23f0d894019317e8b 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointTestBase.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointTestBase.php @@ -7,7 +7,7 @@ namespace Drupal\breakpoint\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; /** * Base class for Breakpoint tests. diff --git a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php index 0091300a2b06741489af63ca9fe441d9d0c2a7e7..dde38a055961b8ccdde74199a856759864583010 100644 --- a/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php +++ b/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointThemeTest.php @@ -7,8 +7,8 @@ namespace Drupal\breakpoint\Tests; use Drupal\breakpoint\Tests\BreakpointGroupTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\BreakpointGroup; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\BreakpointGroup; +use Drupal\breakpoint\Entity\Breakpoint; /** * Test breakpoints provided by themes. diff --git a/core/modules/breakpoint/tests/Drupal/breakpoint/Tests/BreakpointMediaQueryTest.php b/core/modules/breakpoint/tests/Drupal/breakpoint/Tests/BreakpointMediaQueryTest.php index 1e2524f5197374d511341a59d14d7812fde04c21..11866190cf4253efedf842de79e8b2d0b47be771 100644 --- a/core/modules/breakpoint/tests/Drupal/breakpoint/Tests/BreakpointMediaQueryTest.php +++ b/core/modules/breakpoint/tests/Drupal/breakpoint/Tests/BreakpointMediaQueryTest.php @@ -7,7 +7,7 @@ namespace Drupal\breakpoint\Tests; use Drupal\Tests\UnitTestCase; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; use Drupal\breakpoint\InvalidBreakpointMediaQueryException; /** diff --git a/core/modules/ckeditor/ckeditor.api.php b/core/modules/ckeditor/ckeditor.api.php index 0b4f343522db0982169659874b7474b41c60e943..3f08460733b3709238e3fc30dd109ae4ddadf54f 100644 --- a/core/modules/ckeditor/ckeditor.api.php +++ b/core/modules/ckeditor/ckeditor.api.php @@ -5,7 +5,7 @@ * Documentation for CKEditor module APIs. */ -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * @addtogroup hooks diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginBase.php b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginBase.php index 34ab0bd150b30348f405aad77cd5acd63c84a422..05e6b0db271e0d83de974b38b5bdfe7bb4c9df8e 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginBase.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginBase.php @@ -8,7 +8,7 @@ namespace Drupal\ckeditor; use Drupal\Component\Plugin\PluginBase; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines a base CKEditor plugin implementation. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginConfigurableInterface.php b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginConfigurableInterface.php index 9d0162548a830a081ef670c2273ea71e1ffe916a..ba3ce86ea7cc159be71b4d492aa0b812ede97664 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginConfigurableInterface.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginConfigurableInterface.php @@ -7,7 +7,7 @@ namespace Drupal\ckeditor; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines an interface for configurable CKEditor plugins. @@ -34,7 +34,7 @@ interface CKEditorPluginConfigurableInterface extends CKEditorPluginInterface { * An empty form array to be populated with a configuration form, if any. * @param array $form_state * The state of the entire filter administration form. - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return array|FALSE diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginContextualInterface.php b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginContextualInterface.php index b1b88dfc1f46792de0207d5d7c85bb577d583ddd..a2707421b91a75abcdd1d691b5c4792d9850b97d 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginContextualInterface.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginContextualInterface.php @@ -7,7 +7,7 @@ namespace Drupal\ckeditor; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines an interface for contextually enabled CKEditor plugins. @@ -29,7 +29,7 @@ interface CKEditorPluginContextualInterface extends CKEditorPluginInterface { * * The editor's settings can be found in $editor->settings. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return bool diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php index 58c83ac55c7b00577e422ae422b8380a051e2fc2..c070fbd9f2483e0df5b7898c0d3aa30f5b392bb7 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginInterface.php @@ -8,7 +8,7 @@ namespace Drupal\ckeditor; use Drupal\Component\Plugin\PluginInspectionInterface; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines an interface for (loading of) CKEditor plugins. @@ -43,7 +43,7 @@ public function isInternal(); /** * Returns a list of plugins this plugin requires. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @return array * An unindexed array of plugin names this plugin requires. Each plugin is @@ -57,7 +57,7 @@ public function getDependencies(Editor $editor); * These libraries will be attached to the text_format element on which the * editor is being loaded. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @return array * An array of libraries suitable for usage in a render API #attached @@ -85,7 +85,7 @@ public function getFile(); * If there are plugin-specific settings (verify with isset()), they can be * found at $editor->settings['plugins'][$plugin_id]. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @return array * A keyed array, whose keys will end up as keys under CKEDITOR.config. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginManager.php b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginManager.php index 555eae390b8b3ccd8a48703f448f4ad0acba072d..dc69f7e0594c5eca18836a3bd53bdeffeb4475e0 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginManager.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/CKEditorPluginManager.php @@ -12,7 +12,7 @@ use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Language\LanguageManager; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * CKEditor Plugin manager. @@ -54,7 +54,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac * even implicitly loaded (i.e. internal) plugins, then set the optional * second parameter. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @param bool $include_internal_plugins * Defaults to FALSE. When set to TRUE, plugins whose isInternal() method @@ -137,7 +137,7 @@ public function getButtons() { * A reference to an associative array containing the structure of the form. * @param array &$form_state * A reference to a keyed array containing the current state of the form. - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. */ public function injectPluginSettingsForm(array &$form, array &$form_state, Editor $editor) { diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalImage.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalImage.php index 84c31b2414655b9472029e8872dc43badc37e0a6..c1e2f94493b9439f8fc1a861e7419d0dbc1ad793 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalImage.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalImage.php @@ -10,7 +10,7 @@ use Drupal\ckeditor\CKEditorPluginBase; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines the "drupalimage" plugin. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalLink.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalLink.php index a60314c60b8e8210cbc6bab4603ad91611d483ac..e9e193b9c9bf6deb64722cf6f9bec3b789772901 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalLink.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/DrupalLink.php @@ -10,7 +10,7 @@ use Drupal\ckeditor\CKEditorPluginBase; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines the "drupallink" plugin. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/Internal.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/Internal.php index f5c505f3ad6924e30e4968a97b3a828211112718..75a97bf2a04e63cc9d300f3c90b0da51c5a3eed5 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/Internal.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/Internal.php @@ -11,7 +11,7 @@ use Drupal\Component\Utility\NestedArray; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines the "internal" plugin (i.e. core plugins part of our CKEditor build). @@ -241,7 +241,7 @@ public function getButtons() { * * @see getConfig() * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return array @@ -275,7 +275,7 @@ protected function generateFormatTagsSetting(Editor $editor) { * * @see getConfig() * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return string|TRUE diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php index d28ff6ff3494cffcd2b742068722c767e8c26016..3adb74fbd367309892c112f2c96ba7a268aae0e0 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/CKEditorPlugin/StylesCombo.php @@ -12,7 +12,7 @@ use Drupal\Component\Utility\NestedArray; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines the "stylescombo" plugin. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php index 1ed57a661f6ea71f9cc4778988c9487880753302..1faaa0506fa8b17fd7bbd62922fde6ea676d4b41 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php @@ -13,7 +13,7 @@ use Drupal\editor\Annotation\Editor; use Drupal\Core\Annotation\Translation; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; -use Drupal\editor\Plugin\Core\Entity\Editor as EditorEntity; +use Drupal\editor\Entity\Editor as EditorEntity; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -252,7 +252,7 @@ public function getLibraries(EditorEntity $editor) { * * @see getJSSettings() * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @return array * An array containing the "toolbar" configuration. @@ -283,7 +283,7 @@ public function buildToolbarJSSetting(EditorEntity $editor) { * * @see getJSSettings() * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * @return array * An array containing the "contentsCss" configuration. diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorAdminTest.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorAdminTest.php index bf1c30e67f589887a2dee0bae3650f78cdd16660..e0e3cac88d1b52a6f3b7b02aa82340c6bd359600 100644 --- a/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorAdminTest.php +++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Tests/CKEditorAdminTest.php @@ -7,7 +7,7 @@ namespace Drupal\ckeditor\Tests; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; use Drupal\simpletest\WebTestBase; /** diff --git a/core/modules/ckeditor/tests/modules/ckeditor_test.module b/core/modules/ckeditor/tests/modules/ckeditor_test.module index e97c019fec409d4d86fe0368ee28553748c09e4f..a75ad86354cc611b0ccfedf34e545bdfd503b136 100644 --- a/core/modules/ckeditor/tests/modules/ckeditor_test.module +++ b/core/modules/ckeditor/tests/modules/ckeditor_test.module @@ -5,7 +5,7 @@ * Helper module for the CKEditor tests. */ -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Implements hook_ckeditor_css_alter(). diff --git a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php index f8c7443cc84f2e3333ca92c6c023eb6e952302b0..8eccb434aac9e559126a69fc40591c6b368eac6c 100644 --- a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php +++ b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/Llama.php @@ -11,7 +11,7 @@ use Drupal\Component\Plugin\PluginBase; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines the "Llama" plugin, with a CKEditor "llama" feature. diff --git a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextual.php b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextual.php index e36ad314d72a2199100b027d9785ddcd2777de67..e2fb4b914199d002952aa41e989b9ff886dbe038 100644 --- a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextual.php +++ b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextual.php @@ -11,7 +11,7 @@ use Drupal\Component\Plugin\PluginBase; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines a "Llama" plugin, with a contextually enabled "llama" feature. diff --git a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextualAndButton.php b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextualAndButton.php index e6a60f429a14f0d24eaa6173cf1c9d251de2a636..87ec5a74e578bbff3b10541cced3a5b694606670 100644 --- a/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextualAndButton.php +++ b/core/modules/ckeditor/tests/modules/lib/Drupal/ckeditor_test/Plugin/CKEditorPlugin/LlamaContextualAndButton.php @@ -13,7 +13,7 @@ use Drupal\Component\Plugin\PluginBase; use Drupal\ckeditor\Annotation\CKEditorPlugin; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines a "LlamaContextualAndbutton" plugin, with a contextually OR toolbar diff --git a/core/modules/comment/comment.admin.inc b/core/modules/comment/comment.admin.inc index ac186ccbcfde6cb9fc70ad95d7f5fba0bd0f1df8..4360918e3329a0728b98a3bd61986826fdc3a0ec 100644 --- a/core/modules/comment/comment.admin.inc +++ b/core/modules/comment/comment.admin.inc @@ -5,7 +5,7 @@ * Admin page callbacks for the Comment module. */ -use Drupal\comment\Plugin\Core\Entity\Comment; +use Drupal\comment\Entity\Comment; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; @@ -270,7 +270,7 @@ function comment_multiple_delete_confirm_submit($form, &$form_state) { /** * Page callback: Shows a confirmation page for comment deletions. * - * @param \Drupal\comment\Plugin\Core\Entity\Comment $comment + * @param \Drupal\comment\Entity\Comment $comment * The comment entity that is about to be deleted. * * @see comment_menu() diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php index ec1707f599e3feef12e37859756c1ec14965592f..a613825f74ffdedab41e6dbe800e32e58ff943a6 100644 --- a/core/modules/comment/comment.api.php +++ b/core/modules/comment/comment.api.php @@ -54,10 +54,10 @@ function hook_comment_update(Drupal\comment\Comment $comment) { * This hook runs after a new comment object has just been instantiated. It can * be used to set initial values, e.g. to provide defaults. * - * @param \Drupal\comment\Plugin\Core\Entity\Comment $comment + * @param \Drupal\comment\Entity\Comment $comment * The comment object. */ -function hook_comment_create(\Drupal\comment\Plugin\Core\Entity\Comment $comment) { +function hook_comment_create(\Drupal\comment\Entity\Comment $comment) { if (!isset($comment->foo)) { $comment->foo = 'some_initial_value'; } @@ -79,9 +79,9 @@ function hook_comment_load(Drupal\comment\Comment $comments) { /** * Act on a comment that is being assembled before rendering. * - * @param \Drupal\comment\Plugin\Core\Entity\Comment $comment $comment + * @param \Drupal\comment\Entity\Comment $comment $comment * Passes in the comment the action is being performed on. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * comment components. * @param $view_mode @@ -91,7 +91,7 @@ function hook_comment_load(Drupal\comment\Comment $comments) { * * @see hook_entity_view() */ -function hook_comment_view(\Drupal\comment\Plugin\Core\Entity\Comment $comment, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) { +function hook_comment_view(\Drupal\comment\Entity\Comment $comment, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { // Only do the extra work if the component is configured to be displayed. // This assumes a 'mymodule_addition' extra field has been defined for the // node type in hook_field_extra_fields(). @@ -117,16 +117,16 @@ function hook_comment_view(\Drupal\comment\Plugin\Core\Entity\Comment $comment, * * @param $build * A renderable array representing the comment. - * @param \Drupal\comment\Plugin\Core\Entity\Comment $comment + * @param \Drupal\comment\Entity\Comment $comment * The comment being rendered. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * comment components. * * @see comment_view() * @see hook_entity_view_alter() */ -function hook_comment_view_alter(&$build, \Drupal\comment\Plugin\Core\Entity\Comment $comment, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display) { +function hook_comment_view_alter(&$build, \Drupal\comment\Entity\Comment $comment, \Drupal\entity\Entity\EntityDisplay $display) { // Check for the existence of a field added by another module. if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 1af78a5e75dfa77f709fcff7940b0294d49d4242..b7869fbe8acb92a34c0dcc9a5f09d48bd032d3b4 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -10,8 +10,8 @@ */ use Drupal\node\NodeTypeInterface; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\entity\Entity\EntityDisplay; +use Drupal\file\Entity\File; use Drupal\Core\Entity\EntityInterface; use Drupal\node\NodeInterface; use Symfony\Component\HttpFoundation\Request; @@ -78,7 +78,7 @@ */ const COMMENT_NODE_OPEN = 2; -use Drupal\comment\Plugin\Core\Entity\Comment; +use Drupal\comment\Entity\Comment; /** * Implements hook_help(). @@ -1476,7 +1476,7 @@ function comment_preprocess_block(&$variables) { * This helper handles anonymous authors in addition to registered comment * authors. * - * @return \Drupal\user\Plugin\Core\Entity\User + * @return \Drupal\user\Entity\User * A user account, for use with theme_username() or the user_picture template. */ function comment_prepare_author(Comment $comment) { diff --git a/core/modules/comment/comment.pages.inc b/core/modules/comment/comment.pages.inc index 221fbfcd8ad6b83c63c888a67a923e3b027d92cf..b11b4938be513f74266395ace37b15b4f750fb0b 100644 --- a/core/modules/comment/comment.pages.inc +++ b/core/modules/comment/comment.pages.inc @@ -6,7 +6,7 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\comment\Plugin\Core\Entity\Comment; +use Drupal\comment\Entity\Comment; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; diff --git a/core/modules/comment/lib/Drupal/comment/CommentAccessController.php b/core/modules/comment/lib/Drupal/comment/CommentAccessController.php index 98e03e10f17e565751369c571679d1ecaf1c55f4..800991f6fa0e517ce7b2d7922a30292b9b2f6f94 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentAccessController.php +++ b/core/modules/comment/lib/Drupal/comment/CommentAccessController.php @@ -14,7 +14,7 @@ /** * Access controller for the comment entity. * - * @see \Drupal\comment\Plugin\Core\Entity\Comment. + * @see \Drupal\comment\Entity\Comment. */ class CommentAccessController extends EntityAccessController { diff --git a/core/modules/comment/lib/Drupal/comment/CommentInterface.php b/core/modules/comment/lib/Drupal/comment/CommentInterface.php index e586087b739708bf4ad3983d9b95e535b027a88e..6ac0a55d81e8853a4b316ee561acb953a510cb52 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentInterface.php +++ b/core/modules/comment/lib/Drupal/comment/CommentInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\comment\Plugin\Core\Entity\CommentInterface. + * Contains \Drupal\comment\Entity\CommentInterface. */ namespace Drupal\comment; diff --git a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php index c6b21f0d8c6b1094c38efdedd3791a7a92433035..641c56673c3c6111ea386811b3c9a070f9f60736 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php +++ b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityRenderController; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; /** * Render controller for comments. diff --git a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php index 6bd628e50123c6adc9ef1f1c444f7e92202c1e78..4d1af2518fd991d467b30e1a652abf11bbd68dc3 100644 --- a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php +++ b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php @@ -8,7 +8,7 @@ namespace Drupal\comment\Controller; use Drupal\comment\CommentInterface; -use Drupal\comment\Plugin\Core\Entity\Comment; +use Drupal\comment\Entity\Comment; use Drupal\Core\Controller\ControllerInterface; use Drupal\Core\Routing\PathBasedGeneratorInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -21,7 +21,7 @@ /** * Controller for the comment entity. * - * @see \Drupal\comment\Plugin\Core\Entity\Comment. + * @see \Drupal\comment\Entity\Comment. */ class CommentController implements ControllerInterface { diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php similarity index 98% rename from core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php rename to core/modules/comment/lib/Drupal/comment/Entity/Comment.php index 2b711dda3a5fff6d2b850f449970838b23de9894..4774ec56a864873200126ac58ac0d55843efae4e 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/Core/Entity/Comment.php +++ b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\comment\Plugin\Core\Entity\Comment. + * Definition of Drupal\comment\Entity\Comment. */ -namespace Drupal\comment\Plugin\Core\Entity; +namespace Drupal\comment\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php index 0d27bf970ec5df2710d20f1244c19d710941f42d..0f5804902f08df5121d95750b44e802ced6ac95a 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php @@ -8,7 +8,7 @@ namespace Drupal\comment\Tests; use Drupal\Core\Language\Language; -use Drupal\comment\Plugin\Core\Entity\Comment; +use Drupal\comment\Entity\Comment; use Drupal\simpletest\WebTestBase; /** diff --git a/core/modules/comment/lib/Drupal/comment/Tests/Views/CommentTestBase.php b/core/modules/comment/lib/Drupal/comment/Tests/Views/CommentTestBase.php index dabf53f0246a217fb22fc6d8533a22ed35b4607d..7027ef46d815541c30246efd3cb7a703d3310a74 100644 --- a/core/modules/comment/lib/Drupal/comment/Tests/Views/CommentTestBase.php +++ b/core/modules/comment/lib/Drupal/comment/Tests/Views/CommentTestBase.php @@ -25,7 +25,7 @@ abstract class CommentTestBase extends ViewTestBase { /** * Stores a comment used by the tests. * - * @var \Drupal\comment\Plugin\Core\Entity\Comment + * @var \Drupal\comment\Entity\Comment */ public $comment; diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php index f97d6cf46b5732adf20df1b458da00cde4cfaec2..ed1f69fa64f9a801fce8d2915ed5931f47f4c5cb 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityListTest.php @@ -8,7 +8,7 @@ namespace Drupal\config\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\config_test\Plugin\Core\Entity\ConfigTest; +use Drupal\config_test\Entity\ConfigTest; use Drupal\Core\Entity\EntityStorageControllerInterface; /** diff --git a/core/modules/config/tests/config_test/config_test.module b/core/modules/config/tests/config_test/config_test.module index 41e7c626a7ce39f2b739ceb803daaa7e59fd6adb..a985921b50a77cab6d4f5cb96435941a64eda78f 100644 --- a/core/modules/config/tests/config_test/config_test.module +++ b/core/modules/config/tests/config_test/config_test.module @@ -5,7 +5,7 @@ * Provides Config module hook implementations for testing purposes. */ -use Drupal\config_test\Plugin\Core\Entity\ConfigTest; +use Drupal\config_test\Entity\ConfigTest; use Symfony\Component\HttpFoundation\RedirectResponse; require_once dirname(__FILE__) . '/config_test.hooks.inc'; @@ -13,7 +13,7 @@ /** * Entity URI callback. * - * @param Drupal\config_test\Plugin\Core\Entity\ConfigTest $config_test + * @param Drupal\config_test\Entity\ConfigTest $config_test * A ConfigTest entity. */ function config_test_uri(ConfigTest $config_test) { diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php index 0888dba5f60ba0abcc0b97ad6947680f82f025a4..7b4d95e8a9abe7cea33558f7059e8534032f9b8f 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php @@ -7,7 +7,7 @@ namespace Drupal\config_test; -use Drupal\config_test\Plugin\Core\Entity\ConfigTest; +use Drupal\config_test\Entity\ConfigTest; use Drupal\Component\Utility\String; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\RedirectResponse; @@ -20,7 +20,7 @@ class ConfigTestController { /** * Presents the ConfigTest edit form. * - * @param \Drupal\config_test\Plugin\Core\Entity\ConfigTest $config_test + * @param \Drupal\config_test\Entity\ConfigTest $config_test * The ConfigTest object to edit. * * @return array diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestInterface.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestInterface.php index 2752b9cfdf9c157c91ab97b7e9befe1b47d00ee3..87e558be948ad28f159e6edd397d8055352d28ee 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestInterface.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\config_test\Plugin\Core\Entity\ConfigTestInterface. + * Contains \Drupal\config_test\Entity\ConfigTestInterface. */ namespace Drupal\config_test; diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigQueryTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php similarity index 90% rename from core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigQueryTest.php rename to core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php index b62538e26490e2f8fda0445761bc723130408229..e909f4d1eefc83e4b61e7119159895b530f5b746 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigQueryTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\config_test\Plugin\Core\Entity\ConfigQueryTest. + * Contains \Drupal\config_test\Entity\ConfigQueryTest. */ -namespace Drupal\config_test\Plugin\Core\Entity; +namespace Drupal\config_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php similarity index 95% rename from core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php rename to core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php index dc76288c29b9ebc8bde4f0122fd7602d5b3cdaf5..eab1598c57cabfcf94b86130f5ed478505ae9d5c 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Plugin/Core/Entity/ConfigTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\config_test\Plugin\Core\Entity\ConfigTest. + * Definition of Drupal\config_test\Entity\ConfigTest. */ -namespace Drupal\config_test\Plugin\Core\Entity; +namespace Drupal\config_test\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/contact/contact.module b/core/modules/contact/contact.module index 74cfb1e22458eb0c9b961eb2f4dc24251344a1ae..2b1d8bffc3d5e0720e659d2cac32859bbe511580 100644 --- a/core/modules/contact/contact.module +++ b/core/modules/contact/contact.module @@ -5,7 +5,7 @@ * Enables the use of personal and site-wide contact forms. */ -use Drupal\contact\Plugin\Core\Entity\Category; +use Drupal\contact\Entity\Category; use Drupal\user\UserInterface; /** @@ -233,7 +233,7 @@ function contact_field_extra_fields() { * @param $id * The ID of the contact category to load. * - * @return \Drupal\contact\Plugin\Core\Entity\Category|null + * @return \Drupal\contact\Entity\Category|null * A Category object or NULL if the requested $id does not exist. */ function contact_category_load($id) { @@ -243,7 +243,7 @@ function contact_category_load($id) { /** * Entity URI callback. * - * @param Drupal\contact\Plugin\Core\Entity\Category $category + * @param Drupal\contact\Entity\Category $category * A contact category entity. * * @return array diff --git a/core/modules/contact/contact.pages.inc b/core/modules/contact/contact.pages.inc index c7b7539fc18f32d17f26a917739618a9051b8b5a..b6da2ec5a76e68554f4ef01ebb3c93bbca095e2b 100644 --- a/core/modules/contact/contact.pages.inc +++ b/core/modules/contact/contact.pages.inc @@ -5,14 +5,14 @@ * Page callbacks for the Contact module. */ -use Drupal\contact\Plugin\Core\Entity\Category; +use Drupal\contact\Entity\Category; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Page callback: Presents the site-wide contact form. * - * @param Drupal\contact\Plugin\Core\Entity\Category $category + * @param Drupal\contact\Entity\Category $category * (optional) The contact category to use. * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException diff --git a/core/modules/contact/lib/Drupal/contact/CategoryAccessController.php b/core/modules/contact/lib/Drupal/contact/CategoryAccessController.php index ca6ca90e8dd4e44e5c6b70fb8febb5f620872cf4..ba0bab789fa08cb206f759452ae1695a4d9f73e8 100644 --- a/core/modules/contact/lib/Drupal/contact/CategoryAccessController.php +++ b/core/modules/contact/lib/Drupal/contact/CategoryAccessController.php @@ -13,7 +13,7 @@ /** * Defines an access controller for the contact category entity. * - * @see \Drupal\contact\Plugin\Core\Entity\Category. + * @see \Drupal\contact\Entity\Category. */ class CategoryAccessController extends EntityAccessController { diff --git a/core/modules/contact/lib/Drupal/contact/CategoryInterface.php b/core/modules/contact/lib/Drupal/contact/CategoryInterface.php index 549b51573c808854e49200212337883c055122c3..0f3dd5bf20235d86231054ff3a29c150d8e9aa41 100644 --- a/core/modules/contact/lib/Drupal/contact/CategoryInterface.php +++ b/core/modules/contact/lib/Drupal/contact/CategoryInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\contact\Plugin\Core\Entity\CategoryInterface. + * Contains \Drupal\contact\Entity\CategoryInterface. */ namespace Drupal\contact; diff --git a/core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Category.php b/core/modules/contact/lib/Drupal/contact/Entity/Category.php similarity index 95% rename from core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Category.php rename to core/modules/contact/lib/Drupal/contact/Entity/Category.php index 0b3323f352382ec8e851e4cad235537ffe1415e2..194f12c3e3407e8d9ebb941b1ee984566852958f 100644 --- a/core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Category.php +++ b/core/modules/contact/lib/Drupal/contact/Entity/Category.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\contact\Plugin\Core\Entity\Category. + * Definition of Drupal\contact\Entity\Category. */ -namespace Drupal\contact\Plugin\Core\Entity; +namespace Drupal\contact\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Message.php b/core/modules/contact/lib/Drupal/contact/Entity/Message.php similarity index 96% rename from core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Message.php rename to core/modules/contact/lib/Drupal/contact/Entity/Message.php index a7ae2b3a2f12311d05cde6c2b2a5f7102b72e054..0c398d92110206eb5d35f3c8815aceab21281efc 100644 --- a/core/modules/contact/lib/Drupal/contact/Plugin/Core/Entity/Message.php +++ b/core/modules/contact/lib/Drupal/contact/Entity/Message.php @@ -2,10 +2,10 @@ /** * @file - * Contains Drupal\contact\Plugin\Core\Entity\Message. + * Contains Drupal\contact\Entity\Message. */ -namespace Drupal\contact\Plugin\Core\Entity; +namespace Drupal\contact\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/contact/lib/Drupal/contact/MessageInterface.php b/core/modules/contact/lib/Drupal/contact/MessageInterface.php index b499ec081f8ed10ce393393f41a01a7690595636..bf797e43a327f10b1d72067dd8d86eeac25ad962 100644 --- a/core/modules/contact/lib/Drupal/contact/MessageInterface.php +++ b/core/modules/contact/lib/Drupal/contact/MessageInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\contact\Plugin\Core\Entity\MessageInterface. + * Contains \Drupal\contact\Entity\MessageInterface. */ namespace Drupal\contact; diff --git a/core/modules/contact/lib/Drupal/contact/Tests/MessageEntityTest.php b/core/modules/contact/lib/Drupal/contact/Tests/MessageEntityTest.php index c9e2e5d69c15f6d3ef62c99aebbbc82c4d3c8c10..49c73d7ae5290cf490e48c04738cf24f4d1be8de 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/MessageEntityTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/MessageEntityTest.php @@ -6,13 +6,13 @@ namespace Drupal\contact\Tests; -use Drupal\contact\Plugin\Core\Entity\Message; +use Drupal\contact\Entity\Message; use Drupal\simpletest\DrupalUnitTestBase; /** * Tests the message entity class. * - * @see \Drupal\contact\Plugin\Core\Entity\Message + * @see \Drupal\contact\Entity\Message */ class MessageEntityTest extends DrupalUnitTestBase { diff --git a/core/modules/contact/lib/Drupal/contact/Tests/Views/ContactFieldsTest.php b/core/modules/contact/lib/Drupal/contact/Tests/Views/ContactFieldsTest.php index 166a64bb43b639cdf1600e7a9ddd7fea6c96acb4..1e835e26a4aa3a41e75420fa486253b246e1de34 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/Views/ContactFieldsTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/Views/ContactFieldsTest.php @@ -24,7 +24,7 @@ class ContactFieldsTest extends ViewTestBase { /** * Contains the field definition array attached to contact used for this test. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc index 63e71fc2d1c2af34c3277c12919ed632a2282372..97cbfa9dd71148fe69936f5b14c5bd1caf518cc2 100644 --- a/core/modules/content_translation/content_translation.admin.inc +++ b/core/modules/content_translation/content_translation.admin.inc @@ -7,15 +7,15 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Language\Language; -use Drupal\field\Plugin\Core\Entity\Field; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\Field; +use Drupal\field\Entity\FieldInstance; /** * Returns a form element to configure field synchronization. * - * @param \Drupal\field\Plugin\Core\Entity\Field $field + * @param \Drupal\field\Entity\Field $field * A field definition array. - * @param \Drupal\field\Plugin\Core\Entity\FieldInstance $instance + * @param \Drupal\field\Entity\FieldInstance $instance * A field instance definition object. * * @return array diff --git a/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php b/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php index af66e0deda708cef832edf38bb2987980f7e16c1..867e67d2f05995b00c14b31ae928d97c6cb3d6e9 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php +++ b/core/modules/datetime/lib/Drupal/datetime/Tests/DatetimeFieldTest.php @@ -26,14 +26,14 @@ class DatetimeFieldTest extends WebTestBase { /** * A field to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The instance used in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index a7fbb5d84259d2c65ffbbf7931b98f9ff93a4eb8..a09889ccc83f28ea8c0cb52240ca8ae4ce09a266 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -14,7 +14,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\edit\Form\EditFieldForm; use Drupal\Component\Utility\NestedArray; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\user\TempStoreFactory; /** diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index af2b8ea07584090c3631a610f01d36fdb695bac3..e9a44f06b8c9ee8ddfe4e395b62e6d9cd3e5de84 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -5,8 +5,8 @@ * Adds bindings for client-side "text editors" to text formats. */ -use Drupal\file\Plugin\Core\Entity\File; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\file\Entity\File; +use Drupal\editor\Entity\Editor; use Drupal\Component\Utility\NestedArray; /** @@ -319,7 +319,7 @@ function editor_form_filter_admin_format_submit($form, &$form_state) { /** * Loads an individual configured text editor based on text format ID. * - * @return \Drupal\editor\Plugin\Core\Entity\Editor|null + * @return \Drupal\editor\Entity\Editor|null * A text editor object, or NULL. */ function editor_load($format_id) { diff --git a/core/modules/editor/lib/Drupal/editor/EditorController.php b/core/modules/editor/lib/Drupal/editor/EditorController.php index e53a4c254c3f0262ce99565748be4eb38d8b7791..488c4895ec292e154d8424211e34b05cdde5d4ac 100644 --- a/core/modules/editor/lib/Drupal/editor/EditorController.php +++ b/core/modules/editor/lib/Drupal/editor/EditorController.php @@ -15,7 +15,7 @@ use Drupal\editor\Ajax\GetUntransformedTextCommand; use Drupal\editor\Form\EditorImageDialog; use Drupal\editor\Form\EditorLinkDialog; -use Drupal\filter\Plugin\Core\Entity\FilterFormat; +use Drupal\filter\Entity\FilterFormat; /** * Returns responses for Editor module routes. diff --git a/core/modules/editor/lib/Drupal/editor/EditorInterface.php b/core/modules/editor/lib/Drupal/editor/EditorInterface.php index de6948851637ad42cdb4a3ac4180f4b1c9cb230d..ffd457e7db43d225de2d288683dc7dfa87efc7d0 100644 --- a/core/modules/editor/lib/Drupal/editor/EditorInterface.php +++ b/core/modules/editor/lib/Drupal/editor/EditorInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\editor\Plugin\Core\Entity\EditPluginInterface. + * Contains \Drupal\editor\Entity\EditPluginInterface. */ namespace Drupal\editor; diff --git a/core/modules/editor/lib/Drupal/editor/Plugin/Core/Entity/Editor.php b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php similarity index 95% rename from core/modules/editor/lib/Drupal/editor/Plugin/Core/Entity/Editor.php rename to core/modules/editor/lib/Drupal/editor/Entity/Editor.php index 710b991d91f4fa5696a2ce79b4d456f1ef73f984..1183f80f8095bff5c5167f55ebd9481f15b7be56 100644 --- a/core/modules/editor/lib/Drupal/editor/Plugin/Core/Entity/Editor.php +++ b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\editor\Plugin\Core\Entity\Editor. + * Contains \Drupal\editor\Entity\Editor. */ -namespace Drupal\editor\Plugin\Core\Entity; +namespace Drupal\editor\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php b/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php index dcc78a5e828de8bc98d9aae7b74e4ed55e9146b2..b20f35f50c8118065cb8b787838e11ffd58c07e5 100644 --- a/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php +++ b/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php @@ -8,7 +8,7 @@ namespace Drupal\editor\Form; use Drupal\Core\Form\FormInterface; -use Drupal\filter\Plugin\Core\Entity\FilterFormat; +use Drupal\filter\Entity\FilterFormat; use Drupal\Core\Ajax\AjaxResponse; use Drupal\Core\Ajax\HtmlCommand; use Drupal\editor\Ajax\EditorDialogSave; @@ -29,7 +29,7 @@ public function getFormID() { /** * {@inheritdoc} * - * @param \Drupal\filter\Plugin\Core\Entity\FilterFormat $filter_format + * @param \Drupal\filter\Entity\FilterFormat $filter_format * The filter format for which this dialog corresponds. */ public function buildForm(array $form, array &$form_state, FilterFormat $filter_format = NULL) { diff --git a/core/modules/editor/lib/Drupal/editor/Form/EditorLinkDialog.php b/core/modules/editor/lib/Drupal/editor/Form/EditorLinkDialog.php index 3be9c82b033e6b5229a18f728dae0873e53e3e1e..e79668709d1f26180385d7d296bed1b3ea850be2 100644 --- a/core/modules/editor/lib/Drupal/editor/Form/EditorLinkDialog.php +++ b/core/modules/editor/lib/Drupal/editor/Form/EditorLinkDialog.php @@ -8,7 +8,7 @@ namespace Drupal\editor\Form; use Drupal\Core\Form\FormInterface; -use Drupal\filter\Plugin\Core\Entity\FilterFormat; +use Drupal\filter\Entity\FilterFormat; use Drupal\Core\Ajax\AjaxResponse; use Drupal\Core\Ajax\HtmlCommand; use Drupal\editor\Ajax\EditorDialogSave; @@ -29,7 +29,7 @@ public function getFormID() { /** * {@inheritdoc} * - * @param \Drupal\filter\Plugin\Core\Entity\FilterFormat $filter_format + * @param \Drupal\filter\Entity\FilterFormat $filter_format * The filter format for which this dialog corresponds. */ public function buildForm(array $form, array &$form_state, FilterFormat $filter_format = NULL) { diff --git a/core/modules/editor/lib/Drupal/editor/Plugin/EditorBase.php b/core/modules/editor/lib/Drupal/editor/Plugin/EditorBase.php index 6993ed68a041ab6c32fcadd6bef570cb4a6cea2a..eabb3e1b6dab3cf87b841f14af5daa9951998178 100644 --- a/core/modules/editor/lib/Drupal/editor/Plugin/EditorBase.php +++ b/core/modules/editor/lib/Drupal/editor/Plugin/EditorBase.php @@ -8,7 +8,7 @@ namespace Drupal\editor\Plugin; use Drupal\Component\Plugin\PluginBase; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; use Drupal\editor\Plugin\EditorPluginInterface; /** diff --git a/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php b/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php index c64a303aaa4c2074d87ddd58d28d0b73b0e5f7d1..87f8840596bffe996b7618c3f7c8e1314956472c 100644 --- a/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php +++ b/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php @@ -8,7 +8,7 @@ namespace Drupal\editor\Plugin; use Drupal\Component\Plugin\PluginInspectionInterface; -use Drupal\editor\Plugin\Core\Entity\Editor; +use Drupal\editor\Entity\Editor; /** * Defines an interface for configurable text editors. @@ -24,7 +24,7 @@ interface EditorPluginInterface extends PluginInspectionInterface { * * @return array * An array of settings as they would be stored by a configured text editor - * entity (\Drupal\editor\Plugin\Core\Entity\Editor). + * entity (\Drupal\editor\Entity\Editor). */ function getDefaultSettings(); @@ -40,7 +40,7 @@ function getDefaultSettings(); * An empty form array to be populated with a configuration form, if any. * @param array $form_state * The state of the entire filter administration form. - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return array @@ -83,7 +83,7 @@ function settingsFormSubmit(array $form, array &$form_state); * of the text editor into JavaScript variables that will be accessible when * the text editor is loaded. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return array @@ -102,7 +102,7 @@ function getJSSettings(Editor $editor); * different library for different configurations, instead of being forced to * always use the same method. * - * @param \Drupal\editor\Plugin\Core\Entity\Editor $editor + * @param \Drupal\editor\Entity\Editor $editor * A configured text editor object. * * @return array diff --git a/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php b/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php index d87a4e892d50bad7b7337997565ab386095d6da9..ba260f205ea1b51c6dbc555ae350c6732cc938e2 100644 --- a/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php +++ b/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php @@ -10,7 +10,7 @@ use Drupal\editor\Plugin\EditorBase; use Drupal\editor\Annotation\Editor; use Drupal\Core\Annotation\Translation; -use Drupal\editor\Plugin\Core\Entity\Editor as EditorEntity; +use Drupal\editor\Entity\Editor as EditorEntity; /** * Defines a Unicorn-powered text editor for Drupal. diff --git a/core/modules/email/lib/Drupal/email/Tests/EmailFieldTest.php b/core/modules/email/lib/Drupal/email/Tests/EmailFieldTest.php index 2d76d7616851da6194f7623ac598e8220097d510..e6a2bc04c7a84d09b5ab296f2be3d7439e675359 100644 --- a/core/modules/email/lib/Drupal/email/Tests/EmailFieldTest.php +++ b/core/modules/email/lib/Drupal/email/Tests/EmailFieldTest.php @@ -25,14 +25,14 @@ class EmailFieldTest extends WebTestBase { /** * A field to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The instance used in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityDisplay.php similarity index 94% rename from core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php rename to core/modules/entity/lib/Drupal/entity/Entity/EntityDisplay.php index 78963bc42fa904de88b8ad9bd13baf4c39d85b67..29bf629fb20d3c9aafb16878b39b36c2db44ae5e 100644 --- a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityDisplay.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityDisplay.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity\Plugin\Core\Entity\EntityDisplay. + * Contains \Drupal\entity\Entity\EntityDisplay. */ -namespace Drupal\entity\Plugin\Core\Entity; +namespace Drupal\entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormDisplay.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php similarity index 95% rename from core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormDisplay.php rename to core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php index 9a3f0a63d09a022169ec1a2bdc861a456fa2a034..6b0151042fa223d75c919c2ff75b16ef0a6cf999 100644 --- a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormDisplay.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay. + * Contains \Drupal\entity\Entity\EntityFormDisplay. */ -namespace Drupal\entity\Plugin\Core\Entity; +namespace Drupal\entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php similarity index 95% rename from core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormMode.php rename to core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php index 9d96994f55c940a9f2dd0d65997b530da10ebba0..f2aa4bd1daafb332179982f401d97ee8b06ef6fc 100644 --- a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity\Plugin\Core\Entity\EntityFormMode. + * Contains \Drupal\entity\Entity\EntityFormMode. */ -namespace Drupal\entity\Plugin\Core\Entity; +namespace Drupal\entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityViewMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php similarity index 95% rename from core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityViewMode.php rename to core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php index fb94589a1590de028a0b567f87c9cd46dfa7d51f..e7f2a10c4f25c5f533bcd80a989b58737afc1d5c 100644 --- a/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityViewMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity\Plugin\Core\Entity\EntityViewMode. + * Contains \Drupal\entity\Entity\EntityViewMode. */ -namespace Drupal\entity\Plugin\Core\Entity; +namespace Drupal\entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php b/core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php index 06647e76e618777664256d64e0acfb42421ab8bb..7bddb2a0840eff8f28d8de6186d9a2b59ac5ff75 100644 --- a/core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php +++ b/core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php @@ -23,7 +23,7 @@ interface EntityDisplayBaseInterface extends ConfigEntityInterface { * @param $view_mode * The view mode for the new object. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityDisplay + * @return \Drupal\entity\Entity\EntityDisplay * The new object. */ public function createCopy($view_mode); @@ -56,7 +56,7 @@ public function getComponent($name); * @param array $options * The display options. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityDisplay + * @return \Drupal\entity\Entity\EntityDisplay * The EntityDisplay object. */ public function setComponent($name, array $options = array()); @@ -67,7 +67,7 @@ public function setComponent($name, array $options = array()); * @param string $name * The name of the component. * - * @return \Drupal\entity\Plugin\Core\Entity\EntityDisplay + * @return \Drupal\entity\Entity\EntityDisplay * The EntityDisplay object. */ public function removeComponent($name); diff --git a/core/modules/field/field.attach.inc b/core/modules/field/field.attach.inc index 5bab381ec4447fec3bc7ca43f3404c0e74d8b888..fc86871177b348eacc23f7829800070144757712 100644 --- a/core/modules/field/field.attach.inc +++ b/core/modules/field/field.attach.inc @@ -7,8 +7,8 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityNG; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; -use Drupal\entity\Plugin\Core\Entity\EntityFormDisplay; +use Drupal\entity\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityFormDisplay; use Drupal\Core\Language\Language; use Drupal\Core\Entity\Field\PrepareCacheInterface; @@ -382,7 +382,7 @@ function _field_invoke_get_instances($entity_type, $bundle, $options) { * * Used to invoke methods on an instance's widget. * - * @param \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay $form_display + * @param \Drupal\entity\Entity\EntityFormDisplay $form_display * An EntityFormDisplay object. * * @return callable $target_function @@ -1061,7 +1061,7 @@ function field_attach_prepare_view($entity_type, array $entities, array $display * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity with fields to render. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity display object. * @param $langcode * The language the field values are to be shown in. If no language is diff --git a/core/modules/field/field.crud.inc b/core/modules/field/field.crud.inc index c66fd549cc439611a813e2741faddf4e22e85bc6..ff059bc132f58a9e90ac721d665d2bba2392cd8c 100644 --- a/core/modules/field/field.crud.inc +++ b/core/modules/field/field.crud.inc @@ -6,8 +6,8 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\field\Plugin\Core\Entity\Field; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\Field; +use Drupal\field\Entity\FieldInstance; use Drupal\field\FieldException; /** diff --git a/core/modules/field/field.info.inc b/core/modules/field/field.info.inc index 824d74e7b66c04610b2ffce94326620b6be1b835..41e4e3864dac19f9e38f608c3b8618779bfd38cb 100644 --- a/core/modules/field/field.info.inc +++ b/core/modules/field/field.info.inc @@ -7,7 +7,7 @@ use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Language\Language; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\FieldInstance; use Drupal\field\Field; /** diff --git a/core/modules/field/field.install b/core/modules/field/field.install index c46346a097b6e602d00d72b33b1d9de8a2239d85..d692373698388f2bca546fe76c0dd8aa240fdf5d 100644 --- a/core/modules/field/field.install +++ b/core/modules/field/field.install @@ -6,7 +6,7 @@ */ use Drupal\Component\Uuid\Uuid; -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Creates a field by writing directly to configuration. diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php b/core/modules/field/lib/Drupal/field/Entity/Field.php similarity index 99% rename from core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php rename to core/modules/field/lib/Drupal/field/Entity/Field.php index e669900b20b9c3c5e9697fabaaafbbe7c6265026..cb2d4f0811f380efb2683251f96cf7d1207dfc77 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php +++ b/core/modules/field/lib/Drupal/field/Entity/Field.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\field\Plugin\Core\Entity\Field. + * Contains \Drupal\field\Entity\Field. */ -namespace Drupal\field\Plugin\Core\Entity; +namespace Drupal\field\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; @@ -210,7 +210,7 @@ class Field extends ConfigEntityBase implements FieldInterface { /** * The original field. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ public $original = NULL; diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php b/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php similarity index 98% rename from core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php rename to core/modules/field/lib/Drupal/field/Entity/FieldInstance.php index 1950a9f130ffe8887311557a422fb777d214f0ff..3d8635b37aeb63c7970d46968d2693e9cb76997c 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldInstance.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\field\Plugin\Core\Entity\FieldInstance. + * Contains \Drupal\field\Entity\FieldInstance. */ -namespace Drupal\field\Plugin\Core\Entity; +namespace Drupal\field\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; @@ -155,9 +155,9 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface { * The function will be called with the following arguments: * - \Drupal\Core\Entity\EntityInterface $entity * The entity being created. - * - \Drupal\field\Plugin\Core\Entity\Field $field + * - \Drupal\field\Entity\Field $field * The field object. - * - \Drupal\field\Plugin\Core\Entity\FieldInstance $instance + * - \Drupal\field\Entity\FieldInstance $instance * The field instance object. * - string $langcode * The language of the entity being created. @@ -189,7 +189,7 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface { /** * The field ConfigEntity object corresponding to $field_uuid. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; @@ -203,7 +203,7 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface { /** * The original instance. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ public $original = NULL; diff --git a/core/modules/field/lib/Drupal/field/FieldInterface.php b/core/modules/field/lib/Drupal/field/FieldInterface.php index 132bc39c2156821b3198e09908b6f48c866a4389..f1a2ff737cdbf0ef0687fca9bb0274124f93a8bd 100644 --- a/core/modules/field/lib/Drupal/field/FieldInterface.php +++ b/core/modules/field/lib/Drupal/field/FieldInterface.php @@ -40,7 +40,7 @@ public function getSchema(); * The array of field columns, keyed by column name, in the same format * returned by getSchema(). * - * @see \Drupal\field\Plugin\Core\Entity\FieldInterface::getSchema() + * @see \Drupal\field\Entity\FieldInterface::getSchema() */ public function getColumns(); diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php index 92443245d4196a9823298af245e3573f546f50ac..b3c01506fa17ddf2343795985c5ce10bffec5be7 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php @@ -34,7 +34,7 @@ class ConfigEntityReferenceItemBase extends EntityReferenceItem implements Confi /** * The Field instance definition. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; @@ -44,7 +44,7 @@ class ConfigEntityReferenceItemBase extends EntityReferenceItem implements Confi * Copied from \Drupal\field\Plugin\Type\FieldType\ConfigFieldItemBase, * since we cannot extend it. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ public function getInstance() { if (!isset($this->instance) && $parent = $this->getParent()) { diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigField.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigField.php index 29ce02820463316a8044b23b64456d5f5ae8dd1a..b61b301714b38f6a5f2891a19a67cc43a3660bc2 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigField.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigField.php @@ -19,7 +19,7 @@ class ConfigField extends Field implements ConfigFieldInterface { /** * The Field instance definition. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldInterface.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldInterface.php index cd91c47f3e22b2761788a312e868574fa4d0b50f..090cda9512ab742da94f70f18470682fb1ef5ba0 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldInterface.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldInterface.php @@ -17,7 +17,7 @@ interface ConfigFieldInterface extends FieldInterface { /** * Returns the field instance definition. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ public function getInstance(); diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemBase.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemBase.php index 388ccbe0c08a84340e200ae3ada7f3c492bdd3d3..4313b436f6629c7830988d7f77f39c4cfcd9e473 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemBase.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemBase.php @@ -17,7 +17,7 @@ abstract class ConfigFieldItemBase extends FieldItemBase implements ConfigFieldI /** * The Field instance definition. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ public $instance; diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php index 3b5c813e018c848185d7906eb3fa7cb87f65a771..c916a9f1510b3d22393581d053e4c5759972df64 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php @@ -17,7 +17,7 @@ use Drupal\Core\Plugin\Discovery\CacheDecorator; use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery; use Drupal\Core\Plugin\Discovery\AlterDecorator; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\FieldInstance; /** * Plugin type manager for field formatters. diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetInterface.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetInterface.php index 6c9e88db4344a65902e26ae56d8e20436a02a6c2..833819a6306765333c80249ee66e9b9a5b1a2032 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetInterface.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetInterface.php @@ -8,7 +8,7 @@ namespace Drupal\field\Plugin\Type\Widget; use Drupal\Core\Entity\EntityInterface; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\FieldInstance; use Symfony\Component\Validator\ConstraintViolationInterface; use Drupal\Core\Entity\Field\FieldInterface; diff --git a/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php b/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php index 9637826407bc507aaf7da9e550709d7383d8f6a1..58799f575b4c31789e0013f2feaef748ebdfc84f 100644 --- a/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/BulkDeleteTest.php @@ -7,7 +7,7 @@ namespace Drupal\field\Tests; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\field\Entity\FieldInstance; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Language\Language; diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldAccessTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldAccessTest.php index 16fabe529ad2985ceb85485d6c04537a68ad2cb8..0f86ac50d326a368df0954d8335951d5241de427 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldAccessTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldAccessTest.php @@ -22,7 +22,7 @@ class FieldAccessTest extends FieldTestBase { /** * Node entity to use in this test. * - * @var \Drupal\node\Plugin\Core\Entity\Node + * @var \Drupal\node\Entity\Node */ protected $node; diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php index e5f28d01a387e94037264097e48c34500ed9b3d9..5d422af82d2f0c5cadcae18ed3e19d5156895de8 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php @@ -20,7 +20,7 @@ class FieldAttachStorageTest extends FieldUnitTestBase { /** * The field instance. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldInstanceCrudTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldInstanceCrudTest.php index cade864d7fb73b20f1f165aaa0003a595ad2b89f..0ba7eb55b4cc75896c068a2ef0792f434b1cbecb 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldInstanceCrudTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldInstanceCrudTest.php @@ -14,7 +14,7 @@ class FieldInstanceCrudTest extends FieldUnitTestBase { /** * The field entity. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; diff --git a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php index ebf9722c21b8d1fd6cd45db4b3e6f585eff6af72..85c14e2c568cbb66d1d9fcfcf12e27c2d42bd267 100644 --- a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php @@ -58,14 +58,14 @@ class TranslationTest extends FieldUnitTestBase { /** * The field to use in this test. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The field instance to use in this test. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/field/lib/Drupal/field/Tests/TranslationWebTest.php b/core/modules/field/lib/Drupal/field/Tests/TranslationWebTest.php index df93f12a75e8c93cd0d2036072aa7145c7eab8b5..69b4c48820b11102ded934d5ac92a961fba041a1 100644 --- a/core/modules/field/lib/Drupal/field/Tests/TranslationWebTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/TranslationWebTest.php @@ -38,14 +38,14 @@ class TranslationWebTest extends FieldTestBase { /** * The field to use in this test. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The field instance to use in this test. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/field/tests/modules/field_test/field_test.entity.inc b/core/modules/field/tests/modules/field_test/field_test.entity.inc index 4cea03afb628131db0b70cac45ed776afcc0a2eb..fded178f9fdbef68f6b3dc46603e7795df8edeba 100644 --- a/core/modules/field/tests/modules/field_test/field_test.entity.inc +++ b/core/modules/field/tests/modules/field_test/field_test.entity.inc @@ -6,7 +6,7 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\field_test\Plugin\Core\Entity\TestEntity; +use Drupal\field_test\Entity\TestEntity; /** * Implements hook_entity_info(). diff --git a/core/modules/field_sql_storage/field_sql_storage.install b/core/modules/field_sql_storage/field_sql_storage.install index 5c9eef2e92ab92bcd4533654d6cbe2e29cf2ebde..523e0e0f552b99b79f57b80c725a0962245eaaa4 100644 --- a/core/modules/field_sql_storage/field_sql_storage.install +++ b/core/modules/field_sql_storage/field_sql_storage.install @@ -5,7 +5,7 @@ * Install, update, and uninstall functions for the Field SQL Storage module. */ -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Writes field data directly to SQL storage. diff --git a/core/modules/field_sql_storage/field_sql_storage.module b/core/modules/field_sql_storage/field_sql_storage.module index 5e3e0ddfcb8afbd3950384f1eaad7ea865bfb61a..3e5e25f2bd93d42ebe91de3ee6e38aee34d2874b 100644 --- a/core/modules/field_sql_storage/field_sql_storage.module +++ b/core/modules/field_sql_storage/field_sql_storage.module @@ -8,7 +8,7 @@ use Drupal\Core\Database\Database; use Drupal\Core\Entity\EntityInterface; use Drupal\field\FieldUpdateForbiddenException; -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Implements hook_help(). diff --git a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php index fce0a52c4f50265d4db3a046c0b6e8cc52ff208d..58d64b24151fe41850bbc58a07d1f972781f183a 100644 --- a/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php +++ b/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php @@ -38,14 +38,14 @@ class FieldSqlStorageTest extends EntityUnitTestBase { /** * A field to use in this class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * A field instance to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php index d2208a1ac6868a5e0a74cb29494938d662671117..799f95388e13601331964b9a143b460160bc2f41 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php @@ -12,7 +12,7 @@ use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\field_ui\OverviewBase; use Symfony\Component\DependencyInjection\ContainerInterface; -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Field UI field overview form. diff --git a/core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Plugin/Core/Entity/FieldUITestNoBundle.php b/core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Entity/FieldUITestNoBundle.php similarity index 83% rename from core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Plugin/Core/Entity/FieldUITestNoBundle.php rename to core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Entity/FieldUITestNoBundle.php index 8e70264da2b6dc31c8d196abfdc2ed1c3895a081..5389036d22b0aca269d7f4e8c46cecfa08baf6b7 100644 --- a/core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Plugin/Core/Entity/FieldUITestNoBundle.php +++ b/core/modules/field_ui/tests/modules/field_ui_test/lib/Drupal/field_ui_test/Entity/FieldUITestNoBundle.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\field_ui_test\Plugin\Core\Entity\FieldUITestNoBundle. + * Contains \Drupal\field_ui_test\Entity\FieldUITestNoBundle. */ -namespace Drupal\field_ui_test\Plugin\Core\Entity; +namespace Drupal\field_ui_test\Entity; use Drupal\Core\Entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/file/file.api.php b/core/modules/file/file.api.php index c71321454b3683ff1292720e8dfccd63099fb232..2624623cc9195730169938f0e1ed59becf6cc124 100644 --- a/core/modules/file/file.api.php +++ b/core/modules/file/file.api.php @@ -12,10 +12,10 @@ * This hook runs after a new file object has just been instantiated. It can be * used to set initial values, e.g. to provide defaults. * - * @param \Drupal\file\Plugin\Core\Entity\File $file + * @param \Drupal\file\Entity\File $file * The file object. */ -function hook_file_create(\Drupal\file\Plugin\Core\Entity\File $file) { +function hook_file_create(\Drupal\file\Entity\File $file) { if (!isset($file->foo)) { $file->foo = 'some_initial_value'; } diff --git a/core/modules/file/file.install b/core/modules/file/file.install index 37b89aeaa4d83131f5a96f114099c8e9abe573e2..39d671c147341d3d414ede4f8f03bb7cc539d614 100644 --- a/core/modules/file/file.install +++ b/core/modules/file/file.install @@ -5,7 +5,7 @@ * Install, update and uninstall functions for File module. */ -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Implements hook_schema(). diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 018eef643a1d4eb5cb7a2422e0acaa8986d70fe1..e25a17bdbf341ab745c152cac2fd4738fd44f6d8 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -5,7 +5,7 @@ * Defines a "managed_file" Form API field and a "file" field for Field module. */ -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Template\Attribute; use Symfony\Component\HttpFoundation\JsonResponse; diff --git a/core/modules/file/lib/Drupal/file/Plugin/Core/Entity/File.php b/core/modules/file/lib/Drupal/file/Entity/File.php similarity index 97% rename from core/modules/file/lib/Drupal/file/Plugin/Core/Entity/File.php rename to core/modules/file/lib/Drupal/file/Entity/File.php index ae19af705a63a895c8d12cf298217afb44dc9d2f..dfe97cb32631d6240518ed9b2563ccd918a6bd67 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/Core/Entity/File.php +++ b/core/modules/file/lib/Drupal/file/Entity/File.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\file\Plugin\Core\Entity\File. + * Definition of Drupal\file\Entity\File. */ -namespace Drupal\file\Plugin\Core\Entity; +namespace Drupal\file\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/file/lib/Drupal/file/FileInterface.php b/core/modules/file/lib/Drupal/file/FileInterface.php index 2339d88aee5b2b1ac6a2285149a2a262b473664c..ba818811d0266f6d680589add7a7f46e27710ed4 100644 --- a/core/modules/file/lib/Drupal/file/FileInterface.php +++ b/core/modules/file/lib/Drupal/file/FileInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\file\Plugin\Core\Entity\FileInterface. + * Contains \Drupal\file\Entity\FileInterface. */ namespace Drupal\file; diff --git a/core/modules/file/lib/Drupal/file/FileUsage/DatabaseFileUsageBackend.php b/core/modules/file/lib/Drupal/file/FileUsage/DatabaseFileUsageBackend.php index 5b9b4175fc610ff50d2d3df7e2bf8e3d95dc6cba..bff771943d54b5cd01decf5c05aa0945651022b5 100644 --- a/core/modules/file/lib/Drupal/file/FileUsage/DatabaseFileUsageBackend.php +++ b/core/modules/file/lib/Drupal/file/FileUsage/DatabaseFileUsageBackend.php @@ -9,7 +9,7 @@ use Drupal\Core\Database\Connection; use Drupal\Core\Database\DatabaseExceptionWrapper; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; /** * Defines the database file usage backend. This is the default Drupal backend. diff --git a/core/modules/file/lib/Drupal/file/FileUsage/FileUsageBase.php b/core/modules/file/lib/Drupal/file/FileUsage/FileUsageBase.php index 1abe20def2339466d8b94994312341ecce26f550..2111492cbaf633557f74e36d56182ca83a281ff2 100644 --- a/core/modules/file/lib/Drupal/file/FileUsage/FileUsageBase.php +++ b/core/modules/file/lib/Drupal/file/FileUsage/FileUsageBase.php @@ -7,7 +7,7 @@ namespace Drupal\file\FileUsage; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; /** * Defines the base class for database file usage backend. diff --git a/core/modules/file/lib/Drupal/file/FileUsage/FileUsageInterface.php b/core/modules/file/lib/Drupal/file/FileUsage/FileUsageInterface.php index 1e06dbb94e52e8cdfd4bd97266c2220302ba82ba..5be62fff1e16a80c6b982a1e4c6d5e9d9ce0dce3 100644 --- a/core/modules/file/lib/Drupal/file/FileUsage/FileUsageInterface.php +++ b/core/modules/file/lib/Drupal/file/FileUsage/FileUsageInterface.php @@ -7,7 +7,7 @@ namespace Drupal\file\FileUsage; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; /** * File usage backend interface. diff --git a/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php b/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php index fd00c1139af13a6500774c1ae28a7def56036e59..3aacead9672448cc8b9c8924693342dfeb9e6d03 100644 --- a/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileItemTest.php @@ -26,7 +26,7 @@ class FileItemTest extends FieldUnitTestBase { /** * Created file entity. * - * @var \Drupal\file\Plugin\Core\Entity\File + * @var \Drupal\file\Entity\File */ protected $file; diff --git a/core/modules/file/tests/file_module_test.module b/core/modules/file/tests/file_module_test.module index 19096f94c9c68300226fe55ee7c4c19077e10dd7..fc116ad7a6c17980f68698c0310581424bc2e83c 100644 --- a/core/modules/file/tests/file_module_test.module +++ b/core/modules/file/tests/file_module_test.module @@ -6,7 +6,7 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; /** * Implements hook_menu(). diff --git a/core/modules/file/tests/file_test/file_test.module b/core/modules/file/tests/file_test/file_test.module index b6b88dc885aa7983c181d48a130d4a680f464c7a..90fc9006ff6f2948ff083e2aaa668ac6abbf3a44 100644 --- a/core/modules/file/tests/file_test/file_test.module +++ b/core/modules/file/tests/file_test/file_test.module @@ -8,7 +8,7 @@ * calling file_test_get_calls() or file_test_set_return(). */ -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; const FILE_URL_TEST_CDN_1 = 'http://cdn1.example.com'; const FILE_URL_TEST_CDN_2 = 'http://cdn2.example.com'; diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 58d3a073117df35a356550f90e43e11707fea45f..261225875c610efa3112153e19129f70a1214676 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -8,7 +8,7 @@ use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Language\Language; use Drupal\Core\Template\Attribute; -use Drupal\filter\Plugin\Core\Entity\FilterFormat; +use Drupal\filter\Entity\FilterFormat; /** * Non-HTML markup language filters that generate HTML. @@ -747,7 +747,7 @@ function check_markup($text, $format_id = NULL, $langcode = '', $cache = FALSE, // Cache the filtered text. This cache is infinitely valid. It becomes // obsolete when $text changes (which leads to a new $cache_id). It is // automatically flushed when the text format is updated. - // @see \Drupal\filter\Plugin\Core\Entity\FilterFormat::save() + // @see \Drupal\filter\Entity\FilterFormat::save() if ($cache) { cache('filter')->set($cache_id, $text, CacheBackendInterface::CACHE_PERMANENT, array('filter_format' => $format->format)); } diff --git a/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php similarity index 98% rename from core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php rename to core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php index 7541b53cfd317d2c0f5578703133cbee5e8def59..cc7a3c7db7c1ab80ff0d558fe38f2d22b249f586 100644 --- a/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php +++ b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\filter\Plugin\Core\Entity\FilterFormat. + * Contains \Drupal\filter\Entity\FilterFormat. */ -namespace Drupal\filter\Plugin\Core\Entity; +namespace Drupal\filter\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php index 6b598cca2170fdecf05fc03fa5c0d5e2cd9c5d1e..7517c446476e54fae50c0986b425c0bf1823b175 100644 --- a/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php +++ b/core/modules/filter/lib/Drupal/filter/FilterFormatInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\filter\Plugin\Core\Entity\FilterFormatInterface. + * Contains \Drupal\filter\Entity\FilterFormatInterface. */ namespace Drupal\filter; diff --git a/core/modules/filter/lib/Drupal/filter/Plugin/FilterInterface.php b/core/modules/filter/lib/Drupal/filter/Plugin/FilterInterface.php index ee4ba2bbfb75bb4a4b8c3e8198e77dd6e0aa69fd..40156e4c385b342e7cd074d0206aa177494a53a3 100644 --- a/core/modules/filter/lib/Drupal/filter/Plugin/FilterInterface.php +++ b/core/modules/filter/lib/Drupal/filter/Plugin/FilterInterface.php @@ -20,7 +20,7 @@ * formats as needed. Individual filters can be enabled and configured * differently for each text format. * - * @see \Drupal\filter\Plugin\Core\Entity\FilterFormat + * @see \Drupal\filter\Entity\FilterFormat * * Filtering is a two-step process. First, the content is 'prepared' by calling * the FilterInterface::prepare() method for every filter. The purpose is to diff --git a/core/modules/forum/forum.admin.inc b/core/modules/forum/forum.admin.inc index c63b21f53ebcffbe49a0c410b9302ae687f91169..451f7d1e476ba90265ae371a67ff4efca8af64bf 100644 --- a/core/modules/forum/forum.admin.inc +++ b/core/modules/forum/forum.admin.inc @@ -5,7 +5,7 @@ * Administrative page callbacks for the Forum module. */ -use Drupal\taxonomy\Plugin\Core\Entity\Term; +use Drupal\taxonomy\Entity\Term; /** * Form constructor for the forum overview form. diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 886423644440da0277f82257e4e017db837a4b03..41d26040ead3f1a0c81f377674df3b19935b70f3 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -7,7 +7,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\node\NodeInterface; -use Drupal\taxonomy\Plugin\Core\Entity\Term; +use Drupal\taxonomy\Entity\Term; /** * Implements hook_help(). diff --git a/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php b/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php index 7c4ba56bd1905f67f698a3b736405d27bb05861e..ded6bb5ceb21b9267b6f4bc71629039f5701942a 100644 --- a/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php +++ b/core/modules/forum/lib/Drupal/forum/Form/DeleteForm.php @@ -8,7 +8,7 @@ namespace Drupal\forum\Form; use Drupal\Core\Form\ConfirmFormBase; -use Drupal\taxonomy\Plugin\Core\Entity\Term; +use Drupal\taxonomy\Entity\Term; use Symfony\Component\HttpFoundation\Request; /** @@ -19,7 +19,7 @@ class DeleteForm extends ConfirmFormBase { /** * The taxonomy term being deleted. * - * @var \Drupal\taxonomy\Plugin\Core\Entity\Term + * @var \Drupal\taxonomy\Entity\Term */ protected $taxonomyTerm; diff --git a/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php b/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php index ea55fd9664bd48a0d13fd5a9e5168f0f54eb63d5..0c1bcaa7da4d973621b313322ad3fc31e866d8c8 100644 --- a/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php +++ b/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php @@ -51,7 +51,7 @@ abstract class NormalizerTestBase extends DrupalUnitTestBase { * * @var string */ - protected $entityClass = 'Drupal\entity_test\Plugin\Core\Entity\EntityTest'; + protected $entityClass = 'Drupal\entity_test\Entity\EntityTest'; /** * Overrides \Drupal\simpletest\DrupalUnitTestBase::setup(). diff --git a/core/modules/image/config/schema/image.schema.yml b/core/modules/image/config/schema/image.schema.yml index 871c0cc9e47faaa3a03bb92bca512b41fa7ad79a..658ee8c4dea2a23b6a97caa6b89374f4d4ff9616 100644 --- a/core/modules/image/config/schema/image.schema.yml +++ b/core/modules/image/config/schema/image.schema.yml @@ -12,7 +12,7 @@ image.size: label: 'Height' # Image styles (multiple). -# Plugin \Drupal\image\Plugin\Core\Entity\ImageStyle +# Plugin \Drupal\image\Entity\ImageStyle image.style.*: type: mapping label: 'Image style' diff --git a/core/modules/image/image.module b/core/modules/image/image.module index 28b7bc2419436466ace630a27ea9b745f42cbb69..03b8c95b5e3edd2b459d98490c7d66e42aecdf41 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -6,10 +6,10 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\field\Plugin\Core\Entity\Field; -use Drupal\field\Plugin\Core\Entity\FieldInstance; -use Drupal\file\Plugin\Core\Entity\File; -use Drupal\image\Plugin\Core\Entity\ImageStyle; +use Drupal\field\Entity\Field; +use Drupal\field\Entity\FieldInstance; +use Drupal\file\Entity\File; +use Drupal\image\Entity\ImageStyle; use Drupal\field\FieldInterface; use Drupal\field\FieldInstanceInterface; diff --git a/core/modules/image/lib/Drupal/image/Plugin/Core/Entity/ImageStyle.php b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php similarity index 99% rename from core/modules/image/lib/Drupal/image/Plugin/Core/Entity/ImageStyle.php rename to core/modules/image/lib/Drupal/image/Entity/ImageStyle.php index 25e0b81fea4b12493f4620554244954ae0e61711..4d12539d958ceebc3354d62beaf880c6be6e1bf9 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/Core/Entity/ImageStyle.php +++ b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\image\Plugin\Core\Entity\ImageStyle. + * Contains \Drupal\image\Entity\ImageStyle. */ -namespace Drupal\image\Plugin\Core\Entity; +namespace Drupal\image\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/image/lib/Drupal/image/ImageStyleAccessController.php b/core/modules/image/lib/Drupal/image/ImageStyleAccessController.php index 9d5fb5ff2d2f81440590d4c1e661f5a4395f9505..deb9123ed205500abdf439da98a759da1ae6ea61 100644 --- a/core/modules/image/lib/Drupal/image/ImageStyleAccessController.php +++ b/core/modules/image/lib/Drupal/image/ImageStyleAccessController.php @@ -14,7 +14,7 @@ /** * Defines an access controller for the image style entity. * - * @see \Drupal\image\Plugin\Core\Entity\ImageStyle + * @see \Drupal\image\Entity\ImageStyle */ class ImageStyleAccessController extends EntityAccessController { diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageFieldDefaultImagesTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageFieldDefaultImagesTest.php index a0a746faa083185285d92530b06221a29c0f0dde..f926abcf0723ac51e5e147dbc79573d8a264dc05 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageFieldDefaultImagesTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageFieldDefaultImagesTest.php @@ -56,7 +56,7 @@ public function testDefaultImages() { // The instance default image id should be 2. $this->assertEqual($instance->getFieldSetting('default_image'), $default_images['instance']->id()); - // Also test \Drupal\field\Plugin\Core\Entity\FieldInstance::getFieldSetting(). + // Also test \Drupal\field\Entity\FieldInstance::getFieldSetting(). $instance_field_settings = $instance->getFieldSettings(); $this->assertEqual($instance_field_settings['default_image'], $default_images['instance']->id()); @@ -65,7 +65,7 @@ public function testDefaultImages() { // The field default image id should be 1. $this->assertEqual($field->getFieldSetting('default_image'), $default_images['field']->id()); - // Also test \Drupal\field\Plugin\Core\Entity\Field::getFieldSettings(). + // Also test \Drupal\field\Entity\Field::getFieldSettings(). $field_field_settings = $field->getFieldSettings(); $this->assertEqual($field_field_settings['default_image'], $default_images['field']->id()); diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php index fdd368604d0d4ca87f191ea467fcdb79ab68e411..8a51694ac7b1b465d68fcdf0ca71577b086e0e8f 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php @@ -26,7 +26,7 @@ class ImageItemTest extends FieldUnitTestBase { /** * Created file entity. * - * @var \Drupal\file\Plugin\Core\Entity\File + * @var \Drupal\file\Entity\File */ protected $image; diff --git a/core/modules/language/lib/Drupal/language/Plugin/Core/Entity/Language.php b/core/modules/language/lib/Drupal/language/Entity/Language.php similarity index 95% rename from core/modules/language/lib/Drupal/language/Plugin/Core/Entity/Language.php rename to core/modules/language/lib/Drupal/language/Entity/Language.php index 2d7460d55272e301ca5389629ec1134a80239568..15c6a67f4f44b3649b91758b197072b63c3bc572 100644 --- a/core/modules/language/lib/Drupal/language/Plugin/Core/Entity/Language.php +++ b/core/modules/language/lib/Drupal/language/Entity/Language.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\language\Plugin\Core\Entity\Language. + * Contains \Drupal\language\Entity\Language. */ -namespace Drupal\language\Plugin\Core\Entity; +namespace Drupal\language\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/language/lib/Drupal/language/LanguageInterface.php b/core/modules/language/lib/Drupal/language/LanguageInterface.php index 35db8878ef383117aaeea01c5e0e07d954675f9b..20ca26cc2a8c7876a965ff87706e3c935395d481 100644 --- a/core/modules/language/lib/Drupal/language/LanguageInterface.php +++ b/core/modules/language/lib/Drupal/language/LanguageInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\language\Plugin\Core\Entity\LanguageInterface. + * Contains \Drupal\language\Entity\LanguageInterface. */ namespace Drupal\language; diff --git a/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php b/core/modules/layout/lib/Drupal/layout/Entity/Display.php similarity index 98% rename from core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php rename to core/modules/layout/lib/Drupal/layout/Entity/Display.php index 5fbdfc83e41d9aef04b371f21196eb6e421e7648..f9e3c22b2c5ecaf671ab190b53adf75297f689ab 100644 --- a/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php +++ b/core/modules/layout/lib/Drupal/layout/Entity/Display.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\layout\Plugin\Core\Entity\Display. + * Definition of Drupal\layout\Entity\Display. */ -namespace Drupal\layout\Plugin\Core\Entity; +namespace Drupal\layout\Entity; use Drupal\layout\Config\DisplayBase; use Drupal\layout\Config\BoundDisplayInterface; diff --git a/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/UnboundDisplay.php b/core/modules/layout/lib/Drupal/layout/Entity/UnboundDisplay.php similarity index 93% rename from core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/UnboundDisplay.php rename to core/modules/layout/lib/Drupal/layout/Entity/UnboundDisplay.php index d2f4880fdab74dbba9f533e0fcee06e99fe03453..a4ae5e07eea1bd5170485f3f143de27bdfbf19e0 100644 --- a/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/UnboundDisplay.php +++ b/core/modules/layout/lib/Drupal/layout/Entity/UnboundDisplay.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\layout\Plugin\Core\Entity\Display. + * Definition of Drupal\layout\Entity\Display. */ -namespace Drupal\layout\Plugin\Core\Entity; +namespace Drupal\layout\Entity; use Drupal\layout\Config\DisplayBase; use Drupal\layout\Config\BoundDisplayInterface; diff --git a/core/modules/layout/lib/Drupal/layout/Tests/DisplayInternalLogicTest.php b/core/modules/layout/lib/Drupal/layout/Tests/DisplayInternalLogicTest.php index 07a77bf1a8cd2a151f3626685b9e34aa9773a8ae..4c1538b03dda068a6ff0c789f30d62884e80fc2c 100644 --- a/core/modules/layout/lib/Drupal/layout/Tests/DisplayInternalLogicTest.php +++ b/core/modules/layout/lib/Drupal/layout/Tests/DisplayInternalLogicTest.php @@ -8,8 +8,8 @@ namespace Drupal\layout\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\layout\Plugin\Core\Entity\Display; -use Drupal\layout\Plugin\Core\Entity\UnboundDisplay; +use Drupal\layout\Entity\Display; +use Drupal\layout\Entity\UnboundDisplay; /** * Tests the API and internal logic offered by Displays. @@ -26,21 +26,21 @@ class DisplayInternalLogicTest extends WebTestBase { /** * The twocol test display. * - * @var \Drupal\layout\Plugin\Core\Entity\Display + * @var \Drupal\layout\Entity\Display */ public $twocol; /** * The onecol test display. * - * @var \Drupal\layout\Plugin\Core\Entity\Display + * @var \Drupal\layout\Entity\Display */ public $onecol; /** * The unbound test display. * - * @var \Drupal\layout\Plugin\Core\Entity\UnboundDisplay + * @var \Drupal\layout\Entity\UnboundDisplay */ public $unbound; diff --git a/core/modules/link/lib/Drupal/link/Tests/LinkFieldTest.php b/core/modules/link/lib/Drupal/link/Tests/LinkFieldTest.php index b4033ff115348774736c0950b5c65b20e2531a6a..c3c62ef314c9ed1581703179d44d7278ce1d17cf 100644 --- a/core/modules/link/lib/Drupal/link/Tests/LinkFieldTest.php +++ b/core/modules/link/lib/Drupal/link/Tests/LinkFieldTest.php @@ -25,14 +25,14 @@ class LinkFieldTest extends WebTestBase { /** * A field to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The instance used in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php index 83f2bc3cb1a356de4e7df2f9d89ecf50b14c09d5..6c894552fc5ac353765456b3054362a910554dd6 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php @@ -452,7 +452,7 @@ public function testMenuBundles() { * @param string $menu_name Menu name. * @param string $weight Menu weight * - * @return \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @return \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. */ function addMenuLink($plid = 0, $link = '<front>', $menu_name = 'tools', $expanded = TRUE, $weight = '0') { diff --git a/core/modules/menu/menu.api.php b/core/modules/menu/menu.api.php index 7b949ad2a5d7376486a9e27f4a9f0761ba937d54..b18d9cc691d327d1b387106438e5d709d0c6b2fd 100644 --- a/core/modules/menu/menu.api.php +++ b/core/modules/menu/menu.api.php @@ -17,7 +17,7 @@ * Contributed modules may use the information to perform actions based on the * information entered into the menu system. * - * @param \Drupal\system\Plugin\Core\Entity\Menu $menu + * @param \Drupal\system\Entity\Menu $menu * A menu entity. * * @see hook_menu_update() @@ -37,7 +37,7 @@ function hook_menu_insert($menu) { * Contributed modules may use the information to perform actions based on the * information entered into the menu system. * - * @param \Drupal\system\Plugin\Core\Entity\Menu $menu + * @param \Drupal\system\Entity\Menu $menu * A menu entity. * * @see hook_menu_insert() @@ -58,7 +58,7 @@ function hook_menu_update($menu) { * information to perform actions based on the information entered into the menu * system. * - * @param \Drupal\system\Plugin\Core\Entity\Menu $menu + * @param \Drupal\system\Entity\Menu $menu * A menu entity. * * @see hook_menu_insert() diff --git a/core/modules/menu/menu.module b/core/modules/menu/menu.module index a9a50a260e8f07267f2d3984f1d1c5ae64888aee..4906043a840b022a6cdb573475f5f013183da6dd 100644 --- a/core/modules/menu/menu.module +++ b/core/modules/menu/menu.module @@ -13,9 +13,9 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\block\BlockPluginInterface; -use Drupal\system\Plugin\Core\Entity\Menu; +use Drupal\system\Entity\Menu; use Symfony\Component\HttpFoundation\JsonResponse; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Drupal\menu_link\MenuLinkStorageController; use Drupal\node\NodeInterface; @@ -155,7 +155,7 @@ function menu_entity_bundle_info() { /** * Entity URI callback. * - * @param \Drupal\system\Plugin\Core\Entity\Menu $menu + * @param \Drupal\system\Entity\Menu $menu * A Menu entity. */ function menu_uri(Menu $menu) { @@ -293,7 +293,7 @@ function menu_menu_delete(Menu $menu) { * * @param array $menus * An array of menu names and titles, such as from menu_get_menus(). - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * The menu link for which to generate a list of parents. * If $menu_link->id() == 0 then the complete tree is returned. * @param string $type diff --git a/core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php similarity index 99% rename from core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php rename to core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php index 3ff0fdf81ad7cd035fce1858fefd4200c08e5ade..f51b5854eb13e81fcac359078282b1cc37500045 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\menu_link\Plugin\Core\Entity\MenuLink. + * Contains \Drupal\menu_link\Entity\MenuLink. */ -namespace Drupal\menu_link\Plugin\Core\Entity; +namespace Drupal\menu_link\Entity; use Drupal\menu_link\MenuLinkInterface; use Symfony\Component\Routing\Route; diff --git a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php index 664e7dabe12e5bf4f034a0f8dc0c0759ff48b54b..a1c2c693114660bc0e2cda0e86b3d11a709bbcd9 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkAccessController.php @@ -14,7 +14,7 @@ /** * Defines an access controller for the menu link entity. * - * @see \Drupal\menu_link\Plugin\Core\Entity\MenuLink + * @see \Drupal\menu_link\Entity\MenuLink */ class MenuLinkAccessController extends EntityAccessController { diff --git a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php index c185dc4e9b75570a5462fd1fbef9e36c4f29487d..f4c4e0e5d72159d15976ed105535f29974a8fc0d 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\menu_link\Plugin\Core\Entity\MenuLinkInterface. + * Contains \Drupal\menu_link\Entity\MenuLinkInterface. */ namespace Drupal\menu_link; diff --git a/core/modules/menu_link/menu_link.api.php b/core/modules/menu_link/menu_link.api.php index 415b6035a06c9b53be46a9a1cda31f9899b62228..bfb8a2e462aa0f4c3096e50ac450a2aff7edf86f 100644 --- a/core/modules/menu_link/menu_link.api.php +++ b/core/modules/menu_link/menu_link.api.php @@ -42,12 +42,12 @@ function hook_menu_link_load($menu_links) { /** * Alter the data of a menu link entity before it is created or updated. * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. * * @see hook_menu_link_load() */ -function hook_menu_link_presave(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link) { +function hook_menu_link_presave(\Drupal\menu_link\Entity\MenuLink $menu_link) { // Make all new admin links hidden (a.k.a disabled). if (strpos($menu_link->link_path, 'admin') === 0 && $menu_link->isNew()) { $menu_link->hidden = 1; @@ -71,14 +71,14 @@ function hook_menu_link_presave(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $m * created. Contributed modules may use the information to perform * actions based on the information entered into the menu system. * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. * * @see hook_menu_link_presave() * @see hook_menu_link_update() * @see hook_menu_link_delete() */ -function hook_menu_link_insert(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link) { +function hook_menu_link_insert(\Drupal\menu_link\Entity\MenuLink $menu_link) { // In our sample case, we track menu items as editing sections // of the site. These are stored in our table as 'disabled' items. $record['mlid'] = $menu_link->id(); @@ -94,14 +94,14 @@ function hook_menu_link_insert(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $me * updated. Contributed modules may use the information to perform * actions based on the information entered into the menu system. * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. * * @see hook_menu_link_presave() * @see hook_menu_link_insert() * @see hook_menu_link_delete() */ -function hook_menu_link_update(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link) { +function hook_menu_link_update(\Drupal\menu_link\Entity\MenuLink $menu_link) { // If the parent menu has changed, update our record. $menu_name = db_query("SELECT menu_name FROM {menu_example} WHERE mlid = :mlid", array(':mlid' => $menu_link->id()))->fetchField(); if ($menu_name != $menu_link->menu_name) { @@ -119,14 +119,14 @@ function hook_menu_link_update(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $me * deleted. Contributed modules may use the information to perform * actions based on the information entered into the menu system. * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. * * @see hook_menu_link_presave() * @see hook_menu_link_insert() * @see hook_menu_link_update() */ -function hook_menu_link_delete(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link) { +function hook_menu_link_delete(\Drupal\menu_link\Entity\MenuLink $menu_link) { // Delete the record from our table. db_delete('menu_example') ->condition('mlid', $menu_link->id()) diff --git a/core/modules/menu_link/menu_link.module b/core/modules/menu_link/menu_link.module index 4ff3121dba17dddd2acd5ce318d7d2b9df59a4ea..105e502d20234f11949aa6f0095a0da4743bac27 100644 --- a/core/modules/menu_link/menu_link.module +++ b/core/modules/menu_link/menu_link.module @@ -5,7 +5,7 @@ * Enables users to create menu links. */ -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; function menu_link_help($path, $arg) { switch ($path) { @@ -20,7 +20,7 @@ function menu_link_help($path, $arg) { /** * Entity URI callback. * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * A menu link entity. */ function menu_link_uri(MenuLink $menu_link) { @@ -41,7 +41,7 @@ function menu_link_uri(MenuLink $menu_link) { * @param bool $reset * (optional) Whether to reset the menu_link_load_multiple() cache. * - * @return \Drupal\menu_link\Plugin\Core\Entity\MenuLink|null + * @return \Drupal\menu_link\Entity\MenuLink|null * A menu link entity, or NULL if there is no entity with the given ID. */ function menu_link_load($mlid = NULL, $reset = FALSE) { @@ -56,7 +56,7 @@ function menu_link_load($mlid = NULL, $reset = FALSE) { * @param bool $reset * (optional) Whether to reset the internal cache. * - * @return array<\Drupal\menu_link\Plugin\Core\Entity\MenuLink> + * @return array<\Drupal\menu_link\Entity\MenuLink> * An array of menu link entities indexed by entity IDs. * * @see menu_link_load() @@ -123,7 +123,7 @@ function menu_link_delete_multiple(array $mlids, $force = FALSE, $prevent_repare * After calling this function, rebuild the menu cache using * menu_cache_clear_all(). * - * @param \Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link + * @param \Drupal\menu_link\Entity\MenuLink $menu_link * The menu link entity to be saved. * * @return int|bool diff --git a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php b/core/modules/node/lib/Drupal/node/Entity/Node.php similarity index 98% rename from core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php rename to core/modules/node/lib/Drupal/node/Entity/Node.php index a79c796d7a2885a2fd085fa6ee07d9f5f2b1caff..0452e995ceda7e4d661362824cf53b931947f075 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Entity/Node.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\node\Plugin\Core\Entity\Node. + * Definition of Drupal\node\Entity\Node. */ -namespace Drupal\node\Plugin\Core\Entity; +namespace Drupal\node\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/NodeType.php b/core/modules/node/lib/Drupal/node/Entity/NodeType.php similarity index 95% rename from core/modules/node/lib/Drupal/node/Plugin/Core/Entity/NodeType.php rename to core/modules/node/lib/Drupal/node/Entity/NodeType.php index 464fbe0bcdd19b289f2f17b021258b5bf6e70566..d89d4b046b20580d88688c2d580edcd6aabefe40 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Core/Entity/NodeType.php +++ b/core/modules/node/lib/Drupal/node/Entity/NodeType.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\node\Plugin\Core\Entity\NodeType. + * Contains \Drupal\node\Entity\NodeType. */ -namespace Drupal\node\Plugin\Core\Entity; +namespace Drupal\node\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\EntityStorageControllerInterface; @@ -106,14 +106,14 @@ class NodeType extends ConfigEntityBase implements NodeTypeInterface { * * @var bool * - * @see \Drupal\node\Plugin\Core\Entity\NodeType::$create_body_label + * @see \Drupal\node\Entity\NodeType::$create_body_label */ protected $create_body = TRUE; /** * The label to use for the Body field upon entity creation. * - * @see \Drupal\node\Plugin\Core\Entity\NodeType::$create_body + * @see \Drupal\node\Entity\NodeType::$create_body * * @var string */ diff --git a/core/modules/node/lib/Drupal/node/NodeAccessController.php b/core/modules/node/lib/Drupal/node/NodeAccessController.php index 3e4d97b8aa96de7ab67efdbdd43b1809764e6b49..b1f120aeeb4ffc8a7ef32db657b05dd395652486 100644 --- a/core/modules/node/lib/Drupal/node/NodeAccessController.php +++ b/core/modules/node/lib/Drupal/node/NodeAccessController.php @@ -16,7 +16,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Session\AccountInterface; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\Entity\User; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/core/modules/node/lib/Drupal/node/NodeGrantDatabaseStorage.php b/core/modules/node/lib/Drupal/node/NodeGrantDatabaseStorage.php index e7da48c9ff0d5682afd4a181708992c00c9bb601..b274a1f798b8a35f0bf87b6724e998a2a7c29e36 100644 --- a/core/modules/node/lib/Drupal/node/NodeGrantDatabaseStorage.php +++ b/core/modules/node/lib/Drupal/node/NodeGrantDatabaseStorage.php @@ -13,7 +13,7 @@ use Drupal\Core\Entity\EntityNG; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Session\AccountInterface; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\Entity\User; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/core/modules/node/lib/Drupal/node/NodeInterface.php b/core/modules/node/lib/Drupal/node/NodeInterface.php index a9acd3470f48e0a237beaa411867783666b20ad4..249e1ec98fa2731e8dc7027ec80bffc85784b63d 100644 --- a/core/modules/node/lib/Drupal/node/NodeInterface.php +++ b/core/modules/node/lib/Drupal/node/NodeInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\node\Plugin\Core\Entity\NodeInterface. + * Contains \Drupal\node\Entity\NodeInterface. */ namespace Drupal\node; diff --git a/core/modules/node/lib/Drupal/node/NodeRenderController.php b/core/modules/node/lib/Drupal/node/NodeRenderController.php index c5712923eb04c29b839e0732048b1fc19060942d..6da0b29fe9e3acdbf38aa104cfa6adebd8f0bbf1 100644 --- a/core/modules/node/lib/Drupal/node/NodeRenderController.php +++ b/core/modules/node/lib/Drupal/node/NodeRenderController.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityRenderController; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; /** * Render controller for nodes. diff --git a/core/modules/node/lib/Drupal/node/NodeTypeAccessController.php b/core/modules/node/lib/Drupal/node/NodeTypeAccessController.php index 55238a6c89a253730413615953f10702001645c9..b7133bdd0f395a5d4f3526c359c9369681f49ab5 100644 --- a/core/modules/node/lib/Drupal/node/NodeTypeAccessController.php +++ b/core/modules/node/lib/Drupal/node/NodeTypeAccessController.php @@ -14,7 +14,7 @@ /** * Defines an access controller for the node type entity. * - * @see \Drupal\node\Plugin\Core\Entity\NodeType. + * @see \Drupal\node\Entity\NodeType. */ class NodeTypeAccessController extends EntityAccessController { diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageAwareCombinationTest.php index eef96b17ea3b2ab99861a3288222c528851c3622..0459555471aaa093fe1c630bb670d8534bc5aa7f 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageAwareCombinationTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageAwareCombinationTest.php @@ -31,14 +31,14 @@ class NodeAccessLanguageAwareCombinationTest extends NodeTestBase { /** * A normal authenticated user. * - * @var \Drupal\user\Plugin\Core\Entity\UserInterface. + * @var \Drupal\user\Entity\UserInterface. */ protected $web_user; /** * User 1. * - * @var \Drupal\user\Plugin\Core\Entity\UserInterface. + * @var \Drupal\user\Entity\UserInterface. */ protected $admin_user; diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php b/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php index 93eb3dd8d5c18015f7a2d175a9e6e669fd89b28b..1043fb6fc9e13e383b2265ba99b5b40b9290446e 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php @@ -40,7 +40,7 @@ function setUp() { * and account, with each key as the name of an operation (e.g. 'view', * 'delete') and each value a Boolean indicating whether access to that * operation should be granted. - * @param \Drupal\node\Plugin\Core\Entity\Node $node + * @param \Drupal\node\Entity\Node $node * The node object to check. * @param \Drupal\Core\Session\AccountInterface $account * The user account for which to check access. diff --git a/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php b/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php index 4924f56931978883b9e6b36d1df7514b75dc79bd..f5c59aeee9852925890a577317736818b8681e48 100644 --- a/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php @@ -86,7 +86,7 @@ protected function setUp() { * (optional) An associative array of settings for the comment, as used in * entity_create(). * - * @return \Drupal\comment\Plugin\Core\Entity\Comment + * @return \Drupal\comment\Entity\Comment * Returns the created and saved comment. */ public function drupalCreateComment(array $settings = array()) { diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php index 4fe295f467dbc9a74c2976fbf4f503bae7f86814..a6ec9ef4ae4c39c64bf7d6b6ab02b3bdd1ec262c 100644 --- a/core/modules/node/node.api.php +++ b/core/modules/node/node.api.php @@ -788,7 +788,7 @@ function hook_node_submit(\Drupal\Core\Entity\EntityInterface $node, $form, &$fo * * @param \Drupal\Core\Entity\EntityInterface $node * The node that is being assembled for rendering. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * node components. * @param string $view_mode @@ -802,7 +802,7 @@ function hook_node_submit(\Drupal\Core\Entity\EntityInterface $node, $form, &$fo * * @ingroup node_api_hooks */ -function hook_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) { +function hook_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { // Only do the extra work if the component is configured to be displayed. // This assumes a 'mymodule_addition' extra field has been defined for the // node type in hook_field_extra_fields(). @@ -831,7 +831,7 @@ function hook_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entit * A renderable array representing the node content. * @param \Drupal\Core\Entity\EntityInterface $node * The node being rendered. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * node components. * @@ -840,7 +840,7 @@ function hook_node_view(\Drupal\Core\Entity\EntityInterface $node, \Drupal\entit * * @ingroup node_api_hooks */ -function hook_node_view_alter(&$build, \Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display) { +function hook_node_view_alter(&$build, \Drupal\Core\Entity\EntityInterface $node, \Drupal\entity\Entity\EntityDisplay $display) { if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. $build['an_additional_field']['#weight'] = -10; diff --git a/core/modules/node/node.module b/core/modules/node/node.module index a47b72bad6268a428aee336d370e13e3079cb504..2353be3f3e693c2d26cbf12c1c550ebba27963f0 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -20,8 +20,8 @@ use Drupal\node\NodeTypeInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Template\Attribute; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\entity\Entity\EntityDisplay; +use Drupal\file\Entity\File; use Drupal\user\UserInterface; /** diff --git a/core/modules/node/tests/Drupal/node/Tests/Plugin/views/field/NodeBulkFormTest.php b/core/modules/node/tests/Drupal/node/Tests/Plugin/views/field/NodeBulkFormTest.php index 56b750d151ebade7c376664d397f46f59927e5a3..fba2490a8635be3456e09670af29eb26373687bd 100644 --- a/core/modules/node/tests/Drupal/node/Tests/Plugin/views/field/NodeBulkFormTest.php +++ b/core/modules/node/tests/Drupal/node/Tests/Plugin/views/field/NodeBulkFormTest.php @@ -32,7 +32,7 @@ public function testConstructor() { $actions = array(); for ($i = 1; $i <= 2; $i++) { - $action = $this->getMockBuilder('Drupal\system\Plugin\Core\Entity\Action') + $action = $this->getMockBuilder('Drupal\system\Entity\Action') ->disableOriginalConstructor() ->getMock(); $action->expects($this->any()) @@ -41,7 +41,7 @@ public function testConstructor() { $actions[$i] = $action; } - $action = $this->getMockBuilder('Drupal\system\Plugin\Core\Entity\Action') + $action = $this->getMockBuilder('Drupal\system\Entity\Action') ->disableOriginalConstructor() ->getMock(); $action->expects($this->any()) diff --git a/core/modules/node/tests/modules/node_test/lib/Drupal/node_test/NodeTest.php b/core/modules/node/tests/modules/node_test/lib/Drupal/node_test/NodeTest.php index a77ca7674f2240ffdde0c91e243e76f260f935c9..d224a9097a8e044e8f985d9757a84ee41671ad37 100644 --- a/core/modules/node/tests/modules/node_test/lib/Drupal/node_test/NodeTest.php +++ b/core/modules/node/tests/modules/node_test/lib/Drupal/node_test/NodeTest.php @@ -7,7 +7,7 @@ namespace Drupal\node_test; -use Drupal\node\Plugin\Core\Entity\Node; +use Drupal\node\Entity\Node; use Drupal\Core\Entity\EntityStorageControllerInterface; /** diff --git a/core/modules/node/tests/modules/node_test/node_test.module b/core/modules/node/tests/modules/node_test/node_test.module index c0622a48ed4c4b748fe8ba3b52f9ecac159c7f9f..3da1eea0351729855595e947df8ccddc76043dfa 100644 --- a/core/modules/node/tests/modules/node_test/node_test.module +++ b/core/modules/node/tests/modules/node_test/node_test.module @@ -9,7 +9,7 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\node\NodeInterface; /** diff --git a/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php b/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php index ad947e4fa04d328589535016f382032b4102e590..1edfd9fe3209758eadb33b5d3a9a72fd678b21e6 100644 --- a/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php +++ b/core/modules/number/lib/Drupal/number/Tests/NumberFieldTest.php @@ -25,14 +25,14 @@ class NumberFieldTest extends WebTestBase { /** * A field to use in this class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * A field instance to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUnitTestBase.php b/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUnitTestBase.php index 748ee6e4a20ab41baf662bbfb1cca30a305a28da..eda24da9df7f25d2794046c6010ce5c397f2ee11 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUnitTestBase.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUnitTestBase.php @@ -39,14 +39,14 @@ class OptionsFieldUnitTestBase extends FieldUnitTestBase { /** * The list field used in the test. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $field; /** * The list field instance used in the test. * - * @var \Drupal\field\Plugin\Core\Entity\FieldInstance + * @var \Drupal\field\Entity\FieldInstance */ protected $instance; diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php index dbc1876f05ae4ae4a136b6c1f46195322d8e2c72..db77e611f183d991e0981e4a1151b2a1e60d971b 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php @@ -25,21 +25,21 @@ class OptionsWidgetsTest extends FieldTestBase { /** * A field with cardinality 1 to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $card_1; /** * A field with cardinality 2 to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $card_2; /** * A boolean field to use in this test class. * - * @var \Drupal\field\Plugin\Core\Entity\Field + * @var \Drupal\field\Entity\Field */ protected $bool; diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index 52edcf8c2a2f30687c6c66f3c800e084fc91eed2..3f6fbad5fcf0233ef4dc487f72663da0d76a93d5 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; -use Drupal\block\Plugin\Core\Entity\Block; +use Drupal\block\Entity\Block; use Drupal\Core\Session\AccountInterface; /** diff --git a/core/modules/path/path.module b/core/modules/path/path.module index 683f637e0469c724bbb7dcd98b88b55e444b05f4..9a52a98531291d047e2e2b1d1ff1cbbe4d0dd3e2 100644 --- a/core/modules/path/path.module +++ b/core/modules/path/path.module @@ -7,7 +7,7 @@ use Drupal\Core\Language\Language; use Drupal\node\NodeInterface; -use Drupal\taxonomy\Plugin\Core\Entity\Term; +use Drupal\taxonomy\Entity\Term; /** * Implements hook_help(). diff --git a/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php similarity index 99% rename from core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php rename to core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php index e10f86f8f6953133d1e7c7a716af0681e6fb256a..fb266fa5afe2dc252b2897e25d0ecd28c79a7176 100644 --- a/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php +++ b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php @@ -5,7 +5,7 @@ * Definition of Drupal\picture\PictureMapping. */ -namespace Drupal\picture\Plugin\Core\Entity; +namespace Drupal\picture\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/picture/lib/Drupal/picture/PictureMappingInterface.php b/core/modules/picture/lib/Drupal/picture/PictureMappingInterface.php index 7ebf2d4eb093885fabacc1305f4ca7c75732e57a..ca03918511a09cd6cb211468dc8e18c266e7bd2c 100644 --- a/core/modules/picture/lib/Drupal/picture/PictureMappingInterface.php +++ b/core/modules/picture/lib/Drupal/picture/PictureMappingInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\picture\Plugin\Core\Entity\PictureMappingInterface. + * Contains \Drupal\picture\Entity\PictureMappingInterface. */ namespace Drupal\picture; diff --git a/core/modules/picture/lib/Drupal/picture/Tests/PictureAdminUITest.php b/core/modules/picture/lib/Drupal/picture/Tests/PictureAdminUITest.php index e61cac6c0365a171915cdabe1af247d4d1c91ecb..286372c42fb34c6378d2b9f8519398cfdec3a1f9 100644 --- a/core/modules/picture/lib/Drupal/picture/Tests/PictureAdminUITest.php +++ b/core/modules/picture/lib/Drupal/picture/Tests/PictureAdminUITest.php @@ -8,7 +8,7 @@ namespace Drupal\picture\Tests; use Drupal\simpletest\WebTestBase; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; /** * Tests for breakpoint sets admin interface. diff --git a/core/modules/picture/lib/Drupal/picture/Tests/PictureFieldDisplayTest.php b/core/modules/picture/lib/Drupal/picture/Tests/PictureFieldDisplayTest.php index e23dbc536c15a48a5952c853b5c63e21e3552eac..6b3c18f89d64f053fcc4c54ed43d042706e25ef2 100644 --- a/core/modules/picture/lib/Drupal/picture/Tests/PictureFieldDisplayTest.php +++ b/core/modules/picture/lib/Drupal/picture/Tests/PictureFieldDisplayTest.php @@ -8,7 +8,7 @@ namespace Drupal\picture\Tests; use Drupal\Core\Language\Language; -use Drupal\breakpoint\Plugin\Core\Entity\Breakpoint; +use Drupal\breakpoint\Entity\Breakpoint; use Drupal\image\Tests\ImageFieldTestBase; /** diff --git a/core/modules/picture/picture.module b/core/modules/picture/picture.module index a15e06a4fb05eadc0431a56940671afabdd9b84e..07e616a875b8dc08b2a2bd0d17385f0284f47036 100644 --- a/core/modules/picture/picture.module +++ b/core/modules/picture/picture.module @@ -5,7 +5,7 @@ * Picture display formatter for image fields. */ -use Drupal\picture\Plugin\Core\Entity\PictureMapping; +use Drupal\picture\Entity\PictureMapping; use \Drupal\Core\Template\Attribute; /** diff --git a/core/modules/rdf/lib/Drupal/rdf/Plugin/Core/Entity/RdfMapping.php b/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php similarity index 96% rename from core/modules/rdf/lib/Drupal/rdf/Plugin/Core/Entity/RdfMapping.php rename to core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php index 4d6245aee06b7a9ce0189815bf496e87ad16721c..4a5972e249ccc64c2f1babe5d207c1be42c30e0f 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Plugin/Core/Entity/RdfMapping.php +++ b/core/modules/rdf/lib/Drupal/rdf/Entity/RdfMapping.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\rdf\Plugin\Core\Entity\RdfMapping. + * Contains \Drupal\rdf\Entity\RdfMapping. */ -namespace Drupal\rdf\Plugin\Core\Entity; +namespace Drupal\rdf\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/rdf/lib/Drupal/rdf/RdfMappingInterface.php b/core/modules/rdf/lib/Drupal/rdf/RdfMappingInterface.php index 19b1e13523f8420e13fc0fe1b90cde613c27bc6c..458cd2d74ded212f0e04188ada200eb1693730d1 100644 --- a/core/modules/rdf/lib/Drupal/rdf/RdfMappingInterface.php +++ b/core/modules/rdf/lib/Drupal/rdf/RdfMappingInterface.php @@ -58,7 +58,7 @@ public function getBundleMapping(); * @param array $mapping * The bundle mapping. * - * @return \Drupal\rdf\Plugin\Core\Entity\RdfMapping + * @return \Drupal\rdf\Entity\RdfMapping * The RdfMapping object. */ public function setBundleMapping(array $mapping); @@ -103,7 +103,7 @@ public function getFieldMapping($field_name); * @param array $mapping * The field mapping. * - * @return \Drupal\rdf\Plugin\Core\Entity\RdfMapping + * @return \Drupal\rdf\Entity\RdfMapping * The RdfMapping object. */ public function setFieldMapping($field_name, array $mapping = array()); diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php index 6aeac22131a5c58758cf86952299b4486358c010..44e147c5fad69d1a7df1046e6afa93d8edec1203 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php @@ -329,7 +329,7 @@ function _testBasicCommentRdfaMarkup($graph, $comment, $account = array()) { * @param $pid * Comment id of the parent comment in a thread. * - * @return \Drupal\comment\Plugin\Core\Entity\Comment + * @return \Drupal\comment\Entity\Comment * The saved comment. */ function saveComment($nid, $uid, $contact = NULL, $pid = 0) { diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php index 62767a62326743c6e617f1648ca9ee8425e9a242..f4d2eb87f5aed4865b27641848b0efd8bd6c4c19 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/StandardProfileTest.php @@ -503,7 +503,7 @@ protected function assertRdfaNodeCommentProperties($graph) { * @param string $bundle * The bundle of the comment. * - * @return \Drupal\comment\Plugin\Core\Entity\Comment + * @return \Drupal\comment\Entity\Comment * The saved comment. */ protected function saveComment($nid, $uid, $contact = NULL, $pid = 0, $bundle = '') { diff --git a/core/modules/rdf/lib/Drupal/rdf/Tests/TaxonomyTermFieldAttributesTest.php b/core/modules/rdf/lib/Drupal/rdf/Tests/TaxonomyTermFieldAttributesTest.php index 70bdda044af894deb009fd17b799eeda1d05aa4c..5d298d909d640e265c2d738e0fc82a845df52acd 100644 --- a/core/modules/rdf/lib/Drupal/rdf/Tests/TaxonomyTermFieldAttributesTest.php +++ b/core/modules/rdf/lib/Drupal/rdf/Tests/TaxonomyTermFieldAttributesTest.php @@ -147,7 +147,7 @@ function testNodeTeaser() { * * @param string $field_name * The name of the field to create. - * @param \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param \Drupal\taxonomy\Entity\Vocabulary $vocabulary * The vocabulary that the field should use. * * @todo Move this to TaxonomyTestBase, like the other field modules. diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 16f4b911ac929f2c4b29d8a0e140eac22ba6e4ac..27cda8baf13f41681dbdc5bd1fdb0a0dc7fcf1df 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -64,7 +64,7 @@ function rdf_help($path, $arg) { * @param string $bundle * The bundle. * - * @return \Drupal\rdf\Plugin\Core\Entity\RdfMapping + * @return \Drupal\rdf\Entity\RdfMapping * The RdfMapping object. */ function rdf_get_mapping($entity_type, $bundle) { diff --git a/core/modules/rest/rest.api.php b/core/modules/rest/rest.api.php index 0e9409824641107334ee958072bff5ce32bec956..2f3f6ee2c0d81c232a65016fc071f05a186e7c6e 100644 --- a/core/modules/rest/rest.api.php +++ b/core/modules/rest/rest.api.php @@ -22,7 +22,7 @@ function hook_rest_resource_alter(&$definitions) { // class. $definitions['entity:node']['class'] = 'Drupal\mymodule\Plugin\rest\resource\NodeResource'; // Serialized nodes should be expanded to my specific node class. - $definitions['entity:node']['serialization_class'] = 'Drupal\mymodule\Plugin\Core\Entity\MyNode'; + $definitions['entity:node']['serialization_class'] = 'Drupal\mymodule\Entity\MyNode'; } // We don't want Views to show up in the array of plugins at all. unset($definitions['entity:view']); diff --git a/core/modules/serialization/lib/Drupal/serialization/Tests/EntityResolverTest.php b/core/modules/serialization/lib/Drupal/serialization/Tests/EntityResolverTest.php index 48d0293e61cfd16da4d5ff17e0532f448dfeeadc..fa20263f83883e087851ae388645b11f8e2ce55f 100644 --- a/core/modules/serialization/lib/Drupal/serialization/Tests/EntityResolverTest.php +++ b/core/modules/serialization/lib/Drupal/serialization/Tests/EntityResolverTest.php @@ -89,7 +89,7 @@ function testUuidEntityResolver() { ), ); - $denormalized = $this->container->get('serializer')->denormalize($data, 'Drupal\entity_test\Plugin\Core\Entity\EntityTestMulRev', $this->format); + $denormalized = $this->container->get('serializer')->denormalize($data, 'Drupal\entity_test\Entity\EntityTestMulRev', $this->format); $field_value = $denormalized->get('field_test_entity_reference')->getValue(); $this->assertEqual($field_value[0]['target_id'], 1, 'Entity reference resolved using UUID.'); } diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Plugin/Core/Entity/ShortcutSet.php b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php similarity index 97% rename from core/modules/shortcut/lib/Drupal/shortcut/Plugin/Core/Entity/ShortcutSet.php rename to core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php index d55c61ba1f9fc092fa8e7361637907b04c9c085f..392c3d8efbd16e6c680c9b879f542615b2f848b0 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Plugin/Core/Entity/ShortcutSet.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\shortcut\Plugin\Core\Entity\ShortcutSet. + * Contains \Drupal\shortcut\Entity\ShortcutSet. */ -namespace Drupal\shortcut\Plugin\Core\Entity; +namespace Drupal\shortcut\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Form/LinkDelete.php b/core/modules/shortcut/lib/Drupal/shortcut/Form/LinkDelete.php index 9546e7d021f6f075a0a7d5b515779554e2567c79..75773dee783ca5dc79fc049808d5a30c967650f3 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Form/LinkDelete.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Form/LinkDelete.php @@ -8,7 +8,7 @@ namespace Drupal\shortcut\Form; use Drupal\Core\Form\ConfirmFormBase; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Symfony\Component\HttpFoundation\Request; /** @@ -19,7 +19,7 @@ class LinkDelete extends ConfirmFormBase { /** * The menu link to delete. * - * @var \Drupal\menu_link\Plugin\Core\Entity\MenuLink + * @var \Drupal\menu_link\Entity\MenuLink */ protected $menuLink; diff --git a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetInterface.php b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetInterface.php index d2849fca7d83ef39cd3b77a690f4d23faea93b5d..5fa358a4fd94577a82c0511e0b69655adf0f4abc 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetInterface.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\shortcut\Plugin\Core\Entity\ShortcutSetInterface. + * Contains \Drupal\shortcut\Entity\ShortcutSetInterface. */ namespace Drupal\shortcut; diff --git a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetStorageControllerInterface.php b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetStorageControllerInterface.php index 2973d6d8ceb25d059be63a1bb859bb412c5c1976..b4e9d9769ba40abf587cfbfb77591e247a2996da 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetStorageControllerInterface.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetStorageControllerInterface.php @@ -51,7 +51,7 @@ public function deleteAssignedShortcutSets(ShortcutSetInterface $entity); /** * Get the name of the set assigned to this user. * - * @param \Drupal\user\Plugin\Core\Entity\User + * @param \Drupal\user\Entity\User * The user account. * * @return string diff --git a/core/modules/shortcut/shortcut.admin.inc b/core/modules/shortcut/shortcut.admin.inc index b4067875db6027e24fd89e7f41b4286223116fb4..ff3113870951c9b168e92084b5c21178d83a7bd7 100644 --- a/core/modules/shortcut/shortcut.admin.inc +++ b/core/modules/shortcut/shortcut.admin.inc @@ -178,7 +178,7 @@ function shortcut_set_switch_submit($form, &$form_state) { * An associative array containing the structure of the form. * @param $form_state * An associative array containing the current state of the form. - * @param $shortcut_set Drupal\shortcut\Plugin\Core\Entity\Shortcut + * @param $shortcut_set Drupal\shortcut\Entity\Shortcut * An object representing the shortcut set to which the link will be added. * * @return @@ -326,7 +326,7 @@ function shortcut_link_add_submit($form, &$form_state) { * * @param $link * An array representing a shortcut link. - * @param $shortcut_set Drupal\shortcut\Plugin\Core\Entity\Shortcut + * @param $shortcut_set Drupal\shortcut\Entity\Shortcut * An object representing the shortcut set which the link will be added to. * The links in the shortcut set will be re-weighted so that the new link is * at the end, and some existing links may be disabled (if the $limit diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index 57ff7d73388ab779bdaeb611ed18f4c86f123301..15e8959aa971faba2c708d1df541d75069ab4e85 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -5,7 +5,7 @@ * Allows users to manage customizable lists of shortcut links. */ -use Drupal\shortcut\Plugin\Core\Entity\Shortcut; +use Drupal\shortcut\Entity\Shortcut; /** * Implements hook_help(). @@ -161,7 +161,7 @@ function shortcut_admin_paths() { /** * Access callback for editing a shortcut set. * - * @param $shortcut_set Drupal\shortcut\Plugin\Core\Entity\Shortcut + * @param $shortcut_set Drupal\shortcut\Entity\Shortcut * (optional) The shortcut set to be edited. If not set, the current user's * shortcut set will be used. * @@ -278,7 +278,7 @@ function shortcut_set_reset_link_weights(&$shortcut_set) { /** * Assigns a user to a particular shortcut set. * - * @param $shortcut_set Drupal\shortcut\Plugin\Core\Entity\Shortcut + * @param $shortcut_set Drupal\shortcut\Entity\Shortcut * An object representing the shortcut set. * @param $account * A user account that will be assigned to use the set. @@ -423,7 +423,7 @@ function shortcut_valid_link($path) { /** * Returns an array of shortcut links, suitable for rendering. * - * @param $shortcut_set Drupal\shortcut\Plugin\Core\Entity\Shortcut + * @param $shortcut_set Drupal\shortcut\Entity\Shortcut * (optional) An object representing the set whose links will be displayed. * If not provided, the user's current set will be displayed. * @return diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php index f1f5336cbfcd12d9bd0786e202eeb43c713d2e67..4aec435b42a0e9b4d87b20123fded1cf521f84a1 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php @@ -237,7 +237,7 @@ function drupalGetNodeByTitle($title, $reset = FALSE) { * - revision: 1. (Backwards-compatible binary flag indicating whether a * new revision should be created; use 1 to specify a new revision.) * - * @return \Drupal\node\Plugin\Core\Entity\Node + * @return \Drupal\node\Entity\Node * The created node entity. */ protected function drupalCreateNode(array $settings = array()) { @@ -301,7 +301,7 @@ protected function drupalCreateNode(array $settings = array()) { * An array of settings to change from the defaults. * Example: 'type' => 'foo'. * - * @return \Drupal\node\Plugin\Core\Entity\NodeType + * @return \Drupal\node\Entity\NodeType * Created content type. */ protected function drupalCreateContentType(array $values = array()) { @@ -355,7 +355,7 @@ protected function drupalCreateContentType(array $values = array()) { * - theme: The default theme. * - visibility: Empty array. * - * @return \Drupal\block\Plugin\Core\Entity\Block + * @return \Drupal\block\Entity\Block * The block entity. * * @todo @@ -465,7 +465,7 @@ protected function drupalCompareFiles($file1, $file2) { * @param string $name * The user name. * - * @return \Drupal\user\Plugin\Core\Entity\User|false + * @return \Drupal\user\Entity\User|false * A fully loaded user object with pass_raw property, or FALSE if account * creation fails. */ diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml b/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml index 95bde5dd11eaea74e7df1a21f01477b0fd451388..82386aea74c13821acc8f1be813ea564ffb37a54 100644 --- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml +++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml @@ -20,19 +20,19 @@ Undefined index: foo <testsuite name="Drupal\Tests\Core\Route\RoleAccessCheckTest" file="/var/www/d8/core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTestkTest.php" namespace="Drupal\Tests\Core\Route" fullPackage="Drupal.Tests.Core.Route" tests="3" assertions="3" failures="3" errors="0" time="0.009176"> <testsuite name="Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess" tests="3" assertions="3" failures="3" errors="0" time="0.009176"> <testcase name="testRoleAccess with data set #0" assertions="1" time="0.004519"> - <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #0 ('role_test_1', array(Drupal\user\Plugin\Core\Entity\User, Drupal\user\Plugin\Core\Entity\User)) + <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #0 ('role_test_1', array(Drupal\user\Entity\User, Drupal\user\Entity\User)) Access granted for user with the roles role_test_1 on path: role_test_1 Failed asserting that false is true. </failure> </testcase> <testcase name="testRoleAccess with data set #1" assertions="1" time="0.002354"> - <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #1 ('role_test_2', array(Drupal\user\Plugin\Core\Entity\User, Drupal\user\Plugin\Core\Entity\User)) + <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #1 ('role_test_2', array(Drupal\user\Entity\User, Drupal\user\Entity\User)) Access granted for user with the roles role_test_2 on path: role_test_2 Failed asserting that false is true. </failure> </testcase> <testcase name="testRoleAccess with data set #2" assertions="1" time="0.002303"> - <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #2 ('role_test_3', array(Drupal\user\Plugin\Core\Entity\User)) + <failure type="PHPUnit_Framework_ExpectationFailedException">Drupal\Tests\Core\Route\RoleAccessCheckTest::testRoleAccess with data set #2 ('role_test_3', array(Drupal\user\Entity\User)) Access granted for user with the roles role_test_1, role_test_2 on path: role_test_3 Failed asserting that false is true. </failure> diff --git a/core/modules/statistics/lib/Drupal/statistics/Tests/Views/IntegrationTest.php b/core/modules/statistics/lib/Drupal/statistics/Tests/Views/IntegrationTest.php index f5f943aa4ecbfdedc03d3fca042d8b11acbca5ec..a16f824b71d7339f219ae11626f79404a27c6493 100644 --- a/core/modules/statistics/lib/Drupal/statistics/Tests/Views/IntegrationTest.php +++ b/core/modules/statistics/lib/Drupal/statistics/Tests/Views/IntegrationTest.php @@ -35,7 +35,7 @@ class IntegrationTest extends ViewTestBase { /** * Stores the node object which is used by the test. * - * @var \Drupal\node\Plugin\Core\Entity\Node + * @var \Drupal\node\Entity\Node */ protected $node; diff --git a/core/modules/statistics/statistics.module b/core/modules/statistics/statistics.module index 1faf13ea520c6248bad096de47792303ec549816..81e1fd9ce5ae332f941e31a942f8bcf1dbb43789 100644 --- a/core/modules/statistics/statistics.module +++ b/core/modules/statistics/statistics.module @@ -6,7 +6,7 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; /** * Implements hook_help(). diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php b/core/modules/system/lib/Drupal/system/Entity/Action.php similarity index 97% rename from core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php rename to core/modules/system/lib/Drupal/system/Entity/Action.php index 07591aa6ef68b6399df9e1230e10126a525b10b9..5e3b5751bbc2606ad37b8a987f223414805b04bd 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Action.php +++ b/core/modules/system/lib/Drupal/system/Entity/Action.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\system\Plugin\Core\Entity\Action. + * Contains \Drupal\system\Entity\Action. */ -namespace Drupal\system\Plugin\Core\Entity; +namespace Drupal\system\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/DateFormat.php b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php similarity index 97% rename from core/modules/system/lib/Drupal/system/Plugin/Core/Entity/DateFormat.php rename to core/modules/system/lib/Drupal/system/Entity/DateFormat.php index e853b9bb66eab223df4cf307e0a55a61d66c98ed..7762b880493231a2336cdb18f59111c3da39d2d9 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/DateFormat.php +++ b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\system\Plugin\Core\Entity\DateFormat. + * Contains \Drupal\system\Entity\DateFormat. */ -namespace Drupal\system\Plugin\Core\Entity; +namespace Drupal\system\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Datetime\DrupalDateTime; diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php b/core/modules/system/lib/Drupal/system/Entity/Menu.php similarity index 91% rename from core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php rename to core/modules/system/lib/Drupal/system/Entity/Menu.php index ef690c2f5f0524fcdc17961a4f34bf97be97fc11..7b2be7bdb4c87acfdb016c605b7d6ab7b6c4c28f 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php +++ b/core/modules/system/lib/Drupal/system/Entity/Menu.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\system\Plugin\Core\Entity\Menu. + * Contains \Drupal\system\Entity\Menu. */ -namespace Drupal\system\Plugin\Core\Entity; +namespace Drupal\system\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/system/lib/Drupal/system/MenuInterface.php b/core/modules/system/lib/Drupal/system/MenuInterface.php index 11eca2c250ab9d4d7a27ee76a9e0892a4ed5c67b..cd6e73e616ff835f2c26729461667d894c1fdc87 100644 --- a/core/modules/system/lib/Drupal/system/MenuInterface.php +++ b/core/modules/system/lib/Drupal/system/MenuInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\system\Plugin\Core\Entity\MenuInterface. + * Contains \Drupal\system\Entity\MenuInterface. */ namespace Drupal\system; diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php index faa7090b358991db24837585c2488d9261374249..9db6310abcf0c83b7773670928e517063bd09033 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php @@ -12,7 +12,7 @@ /** * Defines a test for testing aggregation support for entity query. * - * @see \Drupal\entity_test\Plugin\Core\Entity\EntityTest + * @see \Drupal\entity_test\Entity\EntityTest */ class EntityQueryAggregateTest extends EntityUnitTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUnitTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUnitTestBase.php index 34fb4cc5b1740716e39d0ffc1d36c5953269aa06..b3b25bbacbc0230c4bd838bc8df1cb77ff186e76 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUnitTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUnitTestBase.php @@ -57,7 +57,7 @@ public function setUp() { * (optional) Array of permission names to assign to user. The * users_roles tables must be installed before this can be used. * - * @return \Drupal\user\Plugin\Core\Entity\User + * @return \Drupal\user\Entity\User * The created user entity. */ protected function createUser($values = array(), $permissions = array()) { diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeAccessTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeAccessTest.php index 4dafee64d21b418f1d9af512c50e75c0b000037e..263e2fcd8c1066291c0487ddfa4fa789d9b379df 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeAccessTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeAccessTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Menu; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Drupal\simpletest\DrupalUnitTestBase; use Drupal\Core\DependencyInjection\ContainerBuilder; use Symfony\Component\Routing\Route; diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php index 1a7de01f1ebfa1038ff47494c25aeab117090e78..8b6c4a136dbe1307c94a04f1430e269752c14c64 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/TreeDataUnitTest.php @@ -7,7 +7,7 @@ namespace Drupal\system\Tests\Menu; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; use Drupal\simpletest\UnitTestBase; /** diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransTest.php index a772a0612f2a25a218c70d105d2f23d115716591..6d87db5d85263d82aa75794ce3c6f9c0adc3ab6e 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/TwigTransTest.php @@ -29,7 +29,7 @@ class TwigTransTest extends WebTestBase { /** * An administrative user for testing. * - * @var \Drupal\user\Plugin\Core\Entity\User + * @var \Drupal\user\Entity\User */ protected $admin_user; diff --git a/core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Plugin/Core/Entity/EntityCacheTest.php b/core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Entity/EntityCacheTest.php similarity index 76% rename from core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Plugin/Core/Entity/EntityCacheTest.php rename to core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Entity/EntityCacheTest.php index 0a43318d9e792e52aa714354306129458188941e..1aad43719dcf60b544f29ca1a99702c6bda7d1d0 100644 --- a/core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Plugin/Core/Entity/EntityCacheTest.php +++ b/core/modules/system/tests/modules/entity_cache_test_dependency/lib/Drupal/entity_cache_test_dependency/Entity/EntityCacheTest.php @@ -2,10 +2,10 @@ /** * @file - * Contains Drupal\entity_cache_test_dependency\Plugin\Core\Entity\EntityCacheTest. + * Contains Drupal\entity_cache_test_dependency\Entity\EntityCacheTest. */ -namespace Drupal\entity_cache_test_dependency\Plugin\Core\Entity; +namespace Drupal\entity_cache_test_dependency\Entity; use Drupal\Core\Entity\Entity; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/system/tests/modules/entity_test/entity_test.module b/core/modules/system/tests/modules/entity_test/entity_test.module index 05498f7e07aad7b2e71ed5f048d11c7e1678f3f6..b4014704a4470026a308873f0dbbc367242a9457 100644 --- a/core/modules/system/tests/modules/entity_test/entity_test.module +++ b/core/modules/system/tests/modules/entity_test/entity_test.module @@ -6,9 +6,9 @@ */ use Drupal\Core\Entity\EntityInterface; -use Drupal\entity\Plugin\Core\Entity\EntityFormDisplay; -use Drupal\field\Plugin\Core\Entity\Field; -use Drupal\field\Plugin\Core\Entity\FieldInstance; +use Drupal\entity\Entity\EntityFormDisplay; +use Drupal\field\Entity\Field; +use Drupal\field\Entity\FieldInstance; /** * Filter that limits test entity list to revisable ones. @@ -286,7 +286,7 @@ function entity_test_edit(EntityInterface $entity) { * @param bool $reset * A boolean indicating that the internal cache should be reset. * - * @return \Drupal\entity_test\Plugin\Core\Entity\EntityTest + * @return \Drupal\entity_test\Entity\EntityTest * The loaded entity object, or NULL if the entity cannot be loaded. */ function entity_test_load($id, $reset = FALSE) { @@ -301,7 +301,7 @@ function entity_test_load($id, $reset = FALSE) { * @param bool $reset * A boolean indicating that the internal cache should be reset. * - * @return \Drupal\entity_test\Plugin\Core\Entity\EntityTestRev + * @return \Drupal\entity_test\Entity\EntityTestRev * The loaded entity object, or NULL if the entity cannot be loaded. */ function entity_test_rev_load($id, $reset = FALSE) { @@ -316,7 +316,7 @@ function entity_test_rev_load($id, $reset = FALSE) { * @param bool $reset * A boolean indicating that the internal cache should be reset. * - * @return \Drupal\entity_test\Plugin\Core\Entity\EntityTestMul + * @return \Drupal\entity_test\Entity\EntityTestMul * The loaded entity object, or FALSE if the entity cannot be loaded. */ function entity_test_mul_load($id, $reset = FALSE) { @@ -331,7 +331,7 @@ function entity_test_mul_load($id, $reset = FALSE) { * @param bool $reset * A boolean indicating that the internal cache should be reset. * - * @return \Drupal\entity_test\Plugin\Core\Entity\EntityTestMulRev + * @return \Drupal\entity_test\Entity\EntityTestMulRev * The loaded entity object, or NULL if the entity cannot be loaded. */ function entity_test_mulrev_load($id, $reset = FALSE) { @@ -468,9 +468,9 @@ function entity_test_entity_test_mul_translation_delete(EntityInterface $transla * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity the field belongs to. - * @param \Drupal\field\Plugin\Core\Entity\Field $field + * @param \Drupal\field\Entity\Field $field * The field for which default values should be provided. - * @param \Drupal\field\Plugin\Core\Entity\FieldInstance $instance + * @param \Drupal\field\Entity\FieldInstance $instance * The field instance for which default values should be provided. * @param string $langcode * The field language code to fill-in with the default value. diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php similarity index 95% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php index 332b322a1c13cd4646af21f819dd049865c48de6..16c49d2f07c53503ba45301b11c2fdfaeb212558 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTest.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\entity_test\Plugin\Core\Entity\EntityTest. + * Definition of Drupal\entity_test\Entity\EntityTest. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestCache.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestCache.php similarity index 95% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestCache.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestCache.php index c40b11e17684f979026aad95ab1e5669862bff65..504bdc8bdecdf3f9add85aed693575d826d1472d 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestCache.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestCache.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestCache. + * Contains \Drupal\entity_test\Entity\EntityTestCache. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestDefaultAccess.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestDefaultAccess.php similarity index 82% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestDefaultAccess.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestDefaultAccess.php index a06333842b61c2a4e817d19413a5d7a10f78a8f0..4893c83201d6cb14f95afc6f4f26a26703d2fbc7 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestDefaultAccess.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestDefaultAccess.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestDefaultAccess. + * Contains \Drupal\entity_test\Entity\EntityTestDefaultAccess. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabel.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabel.php similarity index 82% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabel.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabel.php index 516635ba46fbb47662cd3bf5116ff655bed8390d..224da5a5958f2f69c3c51a65d43a91612b457a55 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabel.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabel.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestLabel. + * Contains \Drupal\entity_test\Entity\EntityTestLabel. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabelCallback.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabelCallback.php similarity index 84% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabelCallback.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabelCallback.php index 867fd746b5650105706fc2ac488da543425db992..1784aa28c4537e3fe4ffc0da293e8de4d02fbceb 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestLabelCallback.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestLabelCallback.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestLabelCallback. + * Contains \Drupal\entity_test\Entity\EntityTestLabelCallback. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMul.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMul.php similarity index 85% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMul.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMul.php index 99455a51e30744da009e751531e82b3c04c69698..2da7b65ea27284ea7bbaa58ff075a4e02d7c1dcb 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMul.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMul.php @@ -2,12 +2,12 @@ /** * @file - * Definition of Drupal\entity_test\Plugin\Core\Entity\EntityTestMul. + * Definition of Drupal\entity_test\Entity\EntityTestMul. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; -use Drupal\entity_test\Plugin\Core\Entity\EntityTest; +use Drupal\entity_test\Entity\EntityTest; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMulRev.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMulRev.php similarity index 86% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMulRev.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMulRev.php index b0bd877571f8c04704a8a0c818172fd29e035d53..5ad480a105777adb2a66d21aed150e9d5cc7b7f7 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestMulRev.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestMulRev.php @@ -2,12 +2,12 @@ /** * @file - * Definition of Drupal\entity_test\Plugin\Core\Entity\EntityTestMulRev. + * Definition of Drupal\entity_test\Entity\EntityTestMulRev. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; -use Drupal\entity_test\Plugin\Core\Entity\EntityTestRev; +use Drupal\entity_test\Entity\EntityTestRev; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoLabel.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestNoLabel.php similarity index 82% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoLabel.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestNoLabel.php index 0af450bff3740a7f6f40423f3eb0b0ceca14e89f..f56a5e0fa95a0504638ea2e86e5d6f30b5a1f277 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestNoLabel.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestNoLabel.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestNoLabel. + * Contains \Drupal\entity_test\Entity\EntityTestNoLabel. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRender.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php similarity index 85% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRender.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php index 90222ba4b29455d5444ee7d078cf9c6605b03f21..3c0869d633054f0b1ac1d7774f1cec77ba7b783e 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRender.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\entity_test\Plugin\Core\Entity\EntityTestRender. + * Contains \Drupal\entity_test\Entity\EntityTestRender. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRev.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php similarity index 89% rename from core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRev.php rename to core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php index 6209cf572b206c1c1ede3faf8c1fd071e419614e..cec6c2aa9491f69a0eb9a78f24f60afa7a070144 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Plugin/Core/Entity/EntityTestRev.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php @@ -2,12 +2,12 @@ /** * @file - * Definition of Drupal\entity_test\Plugin\Core\Entity\EntityTestRev. + * Definition of Drupal\entity_test\Entity\EntityTestRev. */ -namespace Drupal\entity_test\Plugin\Core\Entity; +namespace Drupal\entity_test\Entity; -use Drupal\entity_test\Plugin\Core\Entity\EntityTest; +use Drupal\entity_test\Entity\EntityTest; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestRenderController.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestRenderController.php index a333fa97c557effdf198493bacd9fff8fe52ef62..0c56533fdf68750ff2aced11f6fe3dcb3e9bc889 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestRenderController.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestRenderController.php @@ -12,7 +12,7 @@ /** * Defines an entity render controller for a test entity. * - * @see \Drupal\entity_test\Plugin\Core\Entity\EntityTestRender + * @see \Drupal\entity_test\Entity\EntityTestRender */ class EntityTestRenderController extends EntityRenderController { diff --git a/core/modules/system/tests/modules/menu_test/menu_test.module b/core/modules/system/tests/modules/menu_test/menu_test.module index fd9a90068bf82d341d68f42ffaf7b590f5d80ee6..02fa65badcc9c168596efa52ff0a2069b64411a6 100644 --- a/core/modules/system/tests/modules/menu_test/menu_test.module +++ b/core/modules/system/tests/modules/menu_test/menu_test.module @@ -5,7 +5,7 @@ * Module that implements various hooks for menu tests. */ -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; /** * Implements hook_menu(). diff --git a/core/modules/system/tests/modules/service_provider_test/lib/Drupal/service_provider_test/TestFileUsage.php b/core/modules/system/tests/modules/service_provider_test/lib/Drupal/service_provider_test/TestFileUsage.php index 93919dcae89568c38041a03a41c7e9a30ec73260..c9f061915caffe0d8729f9b69dee0e2e4c409188 100644 --- a/core/modules/system/tests/modules/service_provider_test/lib/Drupal/service_provider_test/TestFileUsage.php +++ b/core/modules/system/tests/modules/service_provider_test/lib/Drupal/service_provider_test/TestFileUsage.php @@ -7,7 +7,7 @@ namespace Drupal\service_provider_test; -use Drupal\file\Plugin\Core\Entity\File; +use Drupal\file\Entity\File; use Drupal\file\FileUsage\FileUsageBase; class TestFileUsage extends FileUsageBase { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Term.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Term.php similarity index 97% rename from core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Term.php rename to core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Term.php index 40de15ab264ba29966a98131aa569ca71ac903fc..9dd69d7ac2823b8e7925cb8d401d276f47b881df 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Term.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Term.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\taxonomy\Plugin\Core\Entity\Term. + * Definition of Drupal\taxonomy\Entity\Term. */ -namespace Drupal\taxonomy\Plugin\Core\Entity; +namespace Drupal\taxonomy\Entity; use Drupal\Core\Entity\EntityNG; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php similarity index 97% rename from core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php rename to core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php index abcb75bf5cef32b0071ae1c1c9f3c51213057b59..cd4e0967f9acf653c8c8028a1941887cc7f787f6 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary. + * Contains \Drupal\taxonomy\Entity\Vocabulary. */ -namespace Drupal\taxonomy\Plugin\Core\Entity; +namespace Drupal\taxonomy\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermAccessController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermAccessController.php index d945ef52957999ae17b28939ee3755bbaa27629d..1678df25fe387b40a5ff1560e52269a9a98669bd 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermAccessController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermAccessController.php @@ -14,7 +14,7 @@ /** * Defines an access controller for the taxonomy term entity. * - * @see \Drupal\taxonomy\Plugin\Core\Entity\Term + * @see \Drupal\taxonomy\Entity\Term */ class TermAccessController extends EntityAccessController { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/TermRenderController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/TermRenderController.php index e7f8882080e9b5380833fca63cf4640de05aae17..cf319d0e5a3025df35616b11e4c0e258d3f3410c 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/TermRenderController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/TermRenderController.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityRenderController; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; /** * Render controller for taxonomy terms. diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php index 20f69884a67a37154f48af15a6da16eadd3e9f4b..20becd171d918c447e778a37674ce3f275c4b3a8 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php @@ -23,7 +23,7 @@ class TermTranslationUITest extends ContentTranslationUITest { /** * The vocabulary used for creating terms. * - * @var \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary + * @var \Drupal\taxonomy\Entity\Vocabulary */ protected $vocabulary; diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyAccessController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyAccessController.php index ac5ebe99df83d2a75da80845b104278e82139733..23fb42ab14b2fd533ab44ca7df2eff8e1bdbad05 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyAccessController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyAccessController.php @@ -14,7 +14,7 @@ /** * Defines an access controller for the vocabulary entity. * - * @see \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary. + * @see \Drupal\taxonomy\Entity\Vocabulary. */ class VocabularyAccessController extends EntityAccessController { diff --git a/core/modules/taxonomy/taxonomy.admin.inc b/core/modules/taxonomy/taxonomy.admin.inc index b61424e195f6fc554b45aa9c8ee234e360b355bc..4e7c5c2b76775387d85d83d935314e40c9009caf 100644 --- a/core/modules/taxonomy/taxonomy.admin.inc +++ b/core/modules/taxonomy/taxonomy.admin.inc @@ -5,7 +5,7 @@ * Administrative page callbacks for the taxonomy module. */ -use Drupal\taxonomy\Plugin\Core\Entity\Vocabulary; +use Drupal\taxonomy\Entity\Vocabulary; /** * Page callback: provides the vocabulary creation form. @@ -25,7 +25,7 @@ function taxonomy_vocabulary_add() { * Display a tree of all the terms in a vocabulary, with options to edit * each one. The form is made drag and drop by the theme function. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * The taxonomy vocabulary entity to list terms for. * * @ingroup forms diff --git a/core/modules/taxonomy/taxonomy.api.php b/core/modules/taxonomy/taxonomy.api.php index 7b20e8583228a0e810a636b5c16e3d5861bd7970..44b5c52fe189eee8ff5da7f1798a8bc953bc78b4 100644 --- a/core/modules/taxonomy/taxonomy.api.php +++ b/core/modules/taxonomy/taxonomy.api.php @@ -18,10 +18,10 @@ * This hook runs after a new vocabulary object has just been instantiated. It * can be used to set initial values, e.g. to provide defaults. * - * @param \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param \Drupal\taxonomy\Entity\Vocabulary $vocabulary * The vocabulary object. */ -function hook_taxonomy_vocabulary_create(\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_create(\Drupal\taxonomy\Entity\Vocabulary $vocabulary) { if (!isset($vocabulary->foo)) { $vocabulary->foo = NULL; } @@ -52,10 +52,10 @@ function hook_taxonomy_vocabulary_load(array $vocabularies) { * Modules implementing this hook can act on the vocabulary object before it is * inserted or updated. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * A taxonomy vocabulary entity. */ -function hook_taxonomy_vocabulary_presave(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_presave(Drupal\taxonomy\Entity\Vocabulary $vocabulary) { $vocabulary->foo = 'bar'; } @@ -65,10 +65,10 @@ function hook_taxonomy_vocabulary_presave(Drupal\taxonomy\Plugin\Core\Entity\Voc * Modules implementing this hook can act on the vocabulary object when saved * to the database. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * A taxonomy vocabulary entity. */ -function hook_taxonomy_vocabulary_insert(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_insert(Drupal\taxonomy\Entity\Vocabulary $vocabulary) { if ($vocabulary->id() == 'my_vocabulary') { $vocabulary->weight = 100; } @@ -79,10 +79,10 @@ function hook_taxonomy_vocabulary_insert(Drupal\taxonomy\Plugin\Core\Entity\Voca * * Modules implementing this hook can act on the vocabulary object when updated. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * A taxonomy vocabulary entity. */ -function hook_taxonomy_vocabulary_update(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_update(Drupal\taxonomy\Entity\Vocabulary $vocabulary) { db_update('mytable') ->fields(array('foo' => $vocabulary->foo)) ->condition('vid', $vocabulary->id()) @@ -95,12 +95,12 @@ function hook_taxonomy_vocabulary_update(Drupal\taxonomy\Plugin\Core\Entity\Voca * This hook is invoked before entity_bundle_delete() is called and before * the vocabulary is actually removed. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * The taxonomy vocabulary entity that is about to be deleted. * * @see hook_taxonomy_vocabulary_delete() */ -function hook_taxonomy_vocabulary_predelete(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_predelete(Drupal\taxonomy\Entity\Vocabulary $vocabulary) { db_delete('mytable_index') ->condition('vid', $vocabulary->id()) ->execute(); @@ -112,12 +112,12 @@ function hook_taxonomy_vocabulary_predelete(Drupal\taxonomy\Plugin\Core\Entity\V * This hook is invoked after entity_bundle_delete() has been called and after * the vocabulary has been removed. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary + * @param Drupal\taxonomy\Entity\Vocabulary $vocabulary * The taxonomy vocabulary entity that has been deleted. * * @see hook_taxonomy_vocabulary_predelete() */ -function hook_taxonomy_vocabulary_delete(Drupal\taxonomy\Plugin\Core\Entity\Vocabulary $vocabulary) { +function hook_taxonomy_vocabulary_delete(Drupal\taxonomy\Entity\Vocabulary $vocabulary) { db_delete('mytable') ->condition('vid', $vocabulary->id()) ->execute(); @@ -129,10 +129,10 @@ function hook_taxonomy_vocabulary_delete(Drupal\taxonomy\Plugin\Core\Entity\Voca * This hook runs after a new term object has just been instantiated. It can be * used to set initial values, e.g. to provide defaults. * - * @param \Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param \Drupal\taxonomy\Entity\Term $term * The term object. */ -function hook_taxonomy_term_create(\Drupal\taxonomy\Plugin\Core\Entity\Term $term) { +function hook_taxonomy_term_create(\Drupal\taxonomy\Entity\Term $term) { if (!isset($term->foo)) { $term->foo = 'some_initial_value'; } @@ -248,9 +248,9 @@ function hook_taxonomy_term_delete(Drupal\taxonomy\Term $term) { * structure of $term->content is a renderable array as expected by * drupal_render(). * - * @param \Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param \Drupal\taxonomy\Entity\Term $term * The term that is being assembled for rendering. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * term components. * @param $view_mode @@ -260,7 +260,7 @@ function hook_taxonomy_term_delete(Drupal\taxonomy\Term $term) { * * @see hook_entity_view() */ -function hook_taxonomy_term_view(\Drupal\taxonomy\Plugin\Core\Entity\Term $term, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) { +function hook_taxonomy_term_view(\Drupal\taxonomy\Entity\Term $term, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { // Only do the extra work if the component is configured to be displayed. // This assumes a 'mymodule_addition' extra field has been defined for the // vocabulary in hook_field_extra_fields(). @@ -287,15 +287,15 @@ function hook_taxonomy_term_view(\Drupal\taxonomy\Plugin\Core\Entity\Term $term, * * @param $build * A renderable array representing the taxonomy term content. - * @param \Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param \Drupal\taxonomy\Entity\Term $term * The taxonomy term being rendered. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * term components. * * @see hook_entity_view_alter() */ -function hook_taxonomy_term_view_alter(&$build, \Drupal\taxonomy\Plugin\Core\Entity\Term $term, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display) { +function hook_taxonomy_term_view_alter(&$build, \Drupal\taxonomy\Entity\Term $term, \Drupal\entity\Entity\EntityDisplay $display) { if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. $build['an_additional_field']['#weight'] = -10; diff --git a/core/modules/taxonomy/taxonomy.install b/core/modules/taxonomy/taxonomy.install index f89db3ac0374f7476be1e963e81582723073a19f..4d4c952b289e7412dff32f641f50ad3183afa4fa 100644 --- a/core/modules/taxonomy/taxonomy.install +++ b/core/modules/taxonomy/taxonomy.install @@ -6,7 +6,7 @@ */ use Drupal\Component\Uuid\Uuid; -use Drupal\field\Plugin\Core\Entity\Field; +use Drupal\field\Entity\Field; /** * Implements hook_uninstall(). diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 17bbb8cf6a6bf920e23a830d4206cca6225f8039..0bfa84d4d330f391334ed7bb7f0f6a345774b782 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -6,9 +6,9 @@ */ use Drupal\taxonomy\VocabularyInterface; -use Drupal\node\Plugin\Core\Entity\Node; -use Drupal\taxonomy\Plugin\Core\Entity\Term; -use Drupal\taxonomy\Plugin\Core\Entity\Vocabulary; +use Drupal\node\Entity\Node; +use Drupal\taxonomy\Entity\Term; +use Drupal\taxonomy\Entity\Vocabulary; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Field\FieldDefinitionInterface; @@ -401,7 +401,7 @@ function taxonomy_check_vocabulary_hierarchy(VocabularyInterface $vocabulary, $c /** * Generates an array which displays a term detail page. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param Drupal\taxonomy\Entity\Term $term * A taxonomy term object. * @param string $view_mode * View mode, e.g. 'full', 'teaser'... @@ -483,7 +483,7 @@ function template_preprocess_taxonomy_term(&$variables) { /** * Returns whether the current page is the page of the passed-in term. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param Drupal\taxonomy\Entity\Term $term * A taxonomy term entity. */ function taxonomy_term_is_page(Term $term) { @@ -810,7 +810,7 @@ function taxonomy_vocabulary_load_multiple(array $vids = NULL) { * Sorts vocabularies by its weight and label. * * @param array $vocabularies - * An array of \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary objects. + * An array of \Drupal\taxonomy\Entity\Vocabulary objects. */ function taxonomy_vocabulary_sort(array &$vocabularies = array()) { // @todo Remove error suppressing when http://drupal.org/node/1799600 is @@ -826,7 +826,7 @@ function taxonomy_vocabulary_sort(array &$vocabularies = array()) { * @param int $vid * The vocabulary's ID. * - * @return \Drupal\taxonomy\Plugin\Core\Entity\Vocabulary|null + * @return \Drupal\taxonomy\Entity\Vocabulary|null * The taxonomy vocabulary entity, if exists, NULL otherwise. Results are * statically cached. */ @@ -842,7 +842,7 @@ function taxonomy_vocabulary_load($vid) { * @param $tid * A term's ID * - * @return \Drupal\taxonomy\Plugin\Core\Entity\Term|null + * @return \Drupal\taxonomy\Entity\Term|null * A taxonomy term entity, or NULL if the term was not found. Results are * statically cached. */ @@ -1020,7 +1020,7 @@ function taxonomy_allowed_values(FieldDefinitionInterface $field_definition, Ent /** * Title callback for term pages. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param Drupal\taxonomy\Entity\Term $term * A taxonomy term entity. * * @return @@ -1122,7 +1122,7 @@ function taxonomy_node_insert(EntityInterface $node) { * The index lists all terms that are related to a given node entity, and is * therefore maintained at the entity level. * - * @param \Drupal\node\Plugin\Core\Entity\Node $node + * @param \Drupal\node\Entity\Node $node * The node entity. */ function taxonomy_build_node_index($node) { diff --git a/core/modules/taxonomy/taxonomy.pages.inc b/core/modules/taxonomy/taxonomy.pages.inc index 4baf150ed2a5022ce378191daf1f1e5c5c966e51..93f628d7e8bce1051b5bb6a976f9a2aa19b17475 100644 --- a/core/modules/taxonomy/taxonomy.pages.inc +++ b/core/modules/taxonomy/taxonomy.pages.inc @@ -5,14 +5,14 @@ * Page callbacks for the taxonomy module. */ -use Drupal\taxonomy\Plugin\Core\Entity\Term; -use Drupal\taxonomy\Plugin\Core\Entity\Vocabulary; +use Drupal\taxonomy\Entity\Term; +use Drupal\taxonomy\Entity\Vocabulary; use Symfony\Component\HttpFoundation\JsonResponse; /** * Menu callback; displays all nodes associated with a term. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param Drupal\taxonomy\Entity\Term $term * The taxonomy term entity. */ function taxonomy_term_page(Term $term) { @@ -65,7 +65,7 @@ function taxonomy_term_page(Term $term) { /** * Generate the content feed for a taxonomy term. * - * @param Drupal\taxonomy\Plugin\Core\Entity\Term $term + * @param Drupal\taxonomy\Entity\Term $term * The taxonomy term entity. */ function taxonomy_term_feed(Term $term) { diff --git a/core/modules/text/lib/Drupal/text/Tests/Formatter/TextPlainUnitTest.php b/core/modules/text/lib/Drupal/text/Tests/Formatter/TextPlainUnitTest.php index 0a2b9008f96d14f55bfb07b7d7a79a75c557812b..3b19cb2e9a2ce1066b9e4c689e43a77859199d17 100644 --- a/core/modules/text/lib/Drupal/text/Tests/Formatter/TextPlainUnitTest.php +++ b/core/modules/text/lib/Drupal/text/Tests/Formatter/TextPlainUnitTest.php @@ -9,7 +9,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Language\Language; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\simpletest\DrupalUnitTestBase; /** @@ -117,7 +117,7 @@ protected function createEntity($values = array()) { * * @param \Drupal\Core\Entity\EntityInterface $entity * The entity object with attached fields to render. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The display to render the fields in. */ protected function renderEntityFields(EntityInterface $entity, EntityDisplay $display) { diff --git a/core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php b/core/modules/tour/lib/Drupal/tour/Entity/Tour.php similarity index 96% rename from core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php rename to core/modules/tour/lib/Drupal/tour/Entity/Tour.php index 4b8ac15d615b9c78cfdd906fe79d8ac28a5b0814..eaa58f86904deaad2621e1d76dcb6d7ea6c8b580 100644 --- a/core/modules/tour/lib/Drupal/tour/Plugin/Core/Entity/Tour.php +++ b/core/modules/tour/lib/Drupal/tour/Entity/Tour.php @@ -2,10 +2,10 @@ /** * @file - * Contains \Drupal\tour\Plugin\Core\Entity\Tour. + * Contains \Drupal\tour\Entity\Tour. */ -namespace Drupal\tour\Plugin\Core\Entity; +namespace Drupal\tour\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\Annotation\EntityType; diff --git a/core/modules/tour/lib/Drupal/tour/TourInterface.php b/core/modules/tour/lib/Drupal/tour/TourInterface.php index 4678a7b8f2dd9bfcc6117a3ba5fb524f076b3744..d5e4135395e41c8474ea437825525b825f86b7dd 100644 --- a/core/modules/tour/lib/Drupal/tour/TourInterface.php +++ b/core/modules/tour/lib/Drupal/tour/TourInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\tour\Plugin\Core\Entity\TourInterface. + * Contains \Drupal\tour\Entity\TourInterface. */ namespace Drupal\tour; diff --git a/core/modules/tour/tour.api.php b/core/modules/tour/tour.api.php index 2f90d8f8ef8b5331fc06fc78ee947501c03e6898..1836a1398dbcd71f5bc513f52ea431b8a343e429 100644 --- a/core/modules/tour/tour.api.php +++ b/core/modules/tour/tour.api.php @@ -40,7 +40,7 @@ function hook_tour_tips_info_alter(&$info) { * Act on tour objects when loaded. * * @param array $entities - * An array of \Drupal\tour\Plugin\Core\Entity\Tour objects, indexed by id. + * An array of \Drupal\tour\Entity\Tour objects, indexed by id. */ function hook_tour_load($entities) { if (isset($entities['tour-entity-create-test-en'])) { @@ -53,7 +53,7 @@ function hook_tour_load($entities) { * * This hook is invoked before the tour object is saved to configuration. * - * @param \Drupal\tour\Plugin\Core\Entity\Tour $entity + * @param \Drupal\tour\Entity\Tour $entity * The tour object. * * @see hook_tour_insert() @@ -68,7 +68,7 @@ function hook_tour_presave($entity) { /** * Respond to creation of a new tour. * - * @param \Drupal\tour\Plugin\Core\Entity\Tour $entity + * @param \Drupal\tour\Entity\Tour $entity * The tour object being inserted. */ function hook_tour_insert($entity) { @@ -79,7 +79,7 @@ function hook_tour_insert($entity) { /** * Respond to updates to a tour object. * - * @param \Drupal\tour\Plugin\Core\Entity\Tour $entity + * @param \Drupal\tour\Entity\Tour $entity * The tour object being updated. */ function hook_tour_update($entity) { diff --git a/core/modules/translation/translation.module b/core/modules/translation/translation.module index 56a514787146d89c5d96cea90b4361bfb7e6ccc4..398fd4f65e41e15a3c627503fd591cfaf53a0348 100644 --- a/core/modules/translation/translation.module +++ b/core/modules/translation/translation.module @@ -22,7 +22,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityFormControllerInterface; use Drupal\Core\Language\Language; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; +use Drupal\entity\Entity\EntityDisplay; use Drupal\node\NodeInterface; /** diff --git a/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/Role.php b/core/modules/user/lib/Drupal/user/Entity/Role.php similarity index 96% rename from core/modules/user/lib/Drupal/user/Plugin/Core/Entity/Role.php rename to core/modules/user/lib/Drupal/user/Entity/Role.php index 4c6602affef1e4c0870a4dfd298e80f06d292d37..2703b8b26d42b354695ee6cc400b73ab78103503 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/Role.php +++ b/core/modules/user/lib/Drupal/user/Entity/Role.php @@ -2,10 +2,10 @@ /** * @file - * Contains Drupal\user\Plugin\Core\Entity\Role. + * Contains Drupal\user\Entity\Role. */ -namespace Drupal\user\Plugin\Core\Entity; +namespace Drupal\user\Entity; use Drupal\Core\Entity\Annotation\EntityType; use Drupal\Core\Annotation\Translation; diff --git a/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/User.php b/core/modules/user/lib/Drupal/user/Entity/User.php similarity index 98% rename from core/modules/user/lib/Drupal/user/Plugin/Core/Entity/User.php rename to core/modules/user/lib/Drupal/user/Entity/User.php index 2a3116d0f375d625ac7b5bb6cd0ad1cf8c3a4bfe..4e87d1532cc2662e5a847bb3a0f1b2ed393c3ef5 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Core/Entity/User.php +++ b/core/modules/user/lib/Drupal/user/Entity/User.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\user\Plugin\Core\Entity\User. + * Definition of Drupal\user\Entity\User. */ -namespace Drupal\user\Plugin\Core\Entity; +namespace Drupal\user\Entity; use Drupal\Core\Entity\EntityStorageControllerInterface; use Drupal\Core\Entity\EntityMalformedException; diff --git a/core/modules/user/lib/Drupal/user/RoleInterface.php b/core/modules/user/lib/Drupal/user/RoleInterface.php index b6b749d0dcf52275014921f8fa9acc74351586ed..7160a8ebee340fd4690192e821128548d6562dfc 100644 --- a/core/modules/user/lib/Drupal/user/RoleInterface.php +++ b/core/modules/user/lib/Drupal/user/RoleInterface.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\user\Plugin\Core\Entity\RoleInterface. + * Contains \Drupal\user\Entity\RoleInterface. */ namespace Drupal\user; diff --git a/core/modules/user/lib/Drupal/user/Tests/UserEntityTest.php b/core/modules/user/lib/Drupal/user/Tests/UserEntityTest.php index 14d885c507d7c7298ad6cb1075c5cbd08fe9f64e..78e386d87261f82923bad4a928df3b36614fdbea 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserEntityTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserEntityTest.php @@ -9,12 +9,12 @@ use Drupal\Core\Language\Language; use Drupal\simpletest\DrupalUnitTestBase; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\Entity\User; /** * Tests the user entity class. * - * @see \Drupal\user\Plugin\Core\Entity\User + * @see \Drupal\user\Entity\User */ class UserEntityTest extends DrupalUnitTestBase { @@ -36,9 +36,9 @@ public static function getInfo() { /** * Tests some of the methods. * - * @see \Drupal\user\Plugin\Core\Entity\User::getRoles() - * @see \Drupal\user\Plugin\Core\Entity\User::addRole() - * @see \Drupal\user\Plugin\Core\Entity\User::removeRole() + * @see \Drupal\user\Entity\User::getRoles() + * @see \Drupal\user\Entity\User::addRole() + * @see \Drupal\user\Entity\User::removeRole() */ public function testUserMethods() { $role_storage = $this->container->get('plugin.manager.entity')->getStorageController('user_role'); diff --git a/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/AddRoleUserTest.php b/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/AddRoleUserTest.php index 71578cc5e2561ba198df5722086d63e325310574..bc32dbc08f1fd439bc4f6f65a7c4ce48f1c32b8f 100644 --- a/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/AddRoleUserTest.php +++ b/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/AddRoleUserTest.php @@ -39,7 +39,7 @@ protected function setUp() { parent::setUp(); $this->account = $this - ->getMockBuilder('Drupal\user\Plugin\Core\Entity\User') + ->getMockBuilder('Drupal\user\Entity\User') ->disableOriginalConstructor() ->getMock(); } diff --git a/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/RemoveRoleUserTest.php b/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/RemoveRoleUserTest.php index a96a96cf9f72f2fcb38788f3cbdd52ebddb51cab..7f650a756a67ac07a32cadf6915060d84a8d9561 100644 --- a/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/RemoveRoleUserTest.php +++ b/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/RemoveRoleUserTest.php @@ -39,7 +39,7 @@ protected function setUp() { parent::setUp(); $this->account = $this - ->getMockBuilder('Drupal\user\Plugin\Core\Entity\User') + ->getMockBuilder('Drupal\user\Entity\User') ->disableOriginalConstructor() ->getMock(); } diff --git a/core/modules/user/tests/Drupal/user/Tests/Plugin/Core/Entity/UserTest.php b/core/modules/user/tests/Drupal/user/Tests/Plugin/Core/Entity/UserTest.php index 0758f63b6172efccaa4d16ff207107063258b4fa..597dbc0eedeb58c9ac679e24c65e3b822c957093 100644 --- a/core/modules/user/tests/Drupal/user/Tests/Plugin/Core/Entity/UserTest.php +++ b/core/modules/user/tests/Drupal/user/Tests/Plugin/Core/Entity/UserTest.php @@ -2,18 +2,18 @@ /** * @file - * Contains \Drupal\user\Tests\Plugin\Core\Entity\UserTest. + * Contains \Drupal\user\Tests\Entity\UserTest. */ -namespace Drupal\user\Tests\Plugin\Core\Entity; +namespace Drupal\user\Tests\Entity; use Drupal\Tests\Core\Session\UserSessionTest; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\Entity\User; /** * Tests the user object. * - * @see \Drupal\user\Plugin\Core\Entity\User + * @see \Drupal\user\Entity\User */ class UserTest extends UserSessionTest { @@ -29,7 +29,7 @@ public static function getInfo() { * {@inheritdoc} */ protected function createUserSession(array $rids = array()) { - $user = $this->getMockBuilder('Drupal\user\Plugin\Core\Entity\User') + $user = $this->getMockBuilder('Drupal\user\Entity\User') ->disableOriginalConstructor() ->setMethods(array('getRoles', 'id')) ->getMock(); diff --git a/core/modules/user/tests/Drupal/user/Tests/Plugin/views/field/UserBulkFormTest.php b/core/modules/user/tests/Drupal/user/Tests/Plugin/views/field/UserBulkFormTest.php index 1214fc62e55dc9de7e49eca6921b3e731321bd37..44f88bfb70411bac9e2659a7d43d0e70b05d3e6a 100644 --- a/core/modules/user/tests/Drupal/user/Tests/Plugin/views/field/UserBulkFormTest.php +++ b/core/modules/user/tests/Drupal/user/Tests/Plugin/views/field/UserBulkFormTest.php @@ -32,7 +32,7 @@ public function testConstructor() { $actions = array(); for ($i = 1; $i <= 2; $i++) { - $action = $this->getMockBuilder('Drupal\system\Plugin\Core\Entity\Action') + $action = $this->getMockBuilder('Drupal\system\Entity\Action') ->disableOriginalConstructor() ->getMock(); $action->expects($this->any()) @@ -41,7 +41,7 @@ public function testConstructor() { $actions[$i] = $action; } - $action = $this->getMockBuilder('Drupal\system\Plugin\Core\Entity\Action') + $action = $this->getMockBuilder('Drupal\system\Entity\Action') ->disableOriginalConstructor() ->getMock(); $action->expects($this->any()) diff --git a/core/modules/user/tests/Drupal/user/Tests/Views/Argument/RolesRidTest.php b/core/modules/user/tests/Drupal/user/Tests/Views/Argument/RolesRidTest.php index c5cd81766b921eaac0131d9f2ad9f3eccea04a64..71305a6bf6f7d03cfe818ece76c4069d53e79bb5 100644 --- a/core/modules/user/tests/Drupal/user/Tests/Views/Argument/RolesRidTest.php +++ b/core/modules/user/tests/Drupal/user/Tests/Views/Argument/RolesRidTest.php @@ -10,7 +10,7 @@ use Drupal\Component\Utility\String; use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Tests\UnitTestCase; -use Drupal\user\Plugin\Core\Entity\Role; +use Drupal\user\Entity\Role; use Drupal\user\Plugin\views\argument\RolesRid; /** @@ -31,7 +31,7 @@ class RolesRidTest extends UnitTestCase { 'label' => 'label', ), 'config_prefix' => 'user.role', - 'class' => 'Drupal\user\Plugin\Core\Entity\Role', + 'class' => 'Drupal\user\Entity\Role', ); public static function getInfo() { diff --git a/core/modules/user/user.api.php b/core/modules/user/user.api.php index 07ba0eb374076b659f4485588555a1e93c523f66..9d6f73e036c071b5e640522031d797dfe609c81a 100644 --- a/core/modules/user/user.api.php +++ b/core/modules/user/user.api.php @@ -21,7 +21,7 @@ * @param \Drupal\user\UserInterface $user * The user object. */ -function hook_user_create(\Drupal\user\Plugin\Core\Entity\User $user) { +function hook_user_create(\Drupal\user\Entity\User $user) { if (!isset($user->foo)) { $user->foo = 'some_initial_value'; } @@ -314,7 +314,7 @@ function hook_user_logout($account) { * * @param \Drupal\user\UserInterface $account * The user object on which the operation is being performed. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * user components. * @param $view_mode @@ -325,7 +325,7 @@ function hook_user_logout($account) { * @see hook_user_view_alter() * @see hook_entity_view() */ -function hook_user_view(\Drupal\user\UserInterface $account, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display, $view_mode, $langcode) { +function hook_user_view(\Drupal\user\UserInterface $account, \Drupal\entity\Entity\EntityDisplay $display, $view_mode, $langcode) { // Only do the extra work if the component is configured to be displayed. // This assumes a 'mymodule_addition' extra field has been defined for the // user entity type in hook_field_extra_fields(). @@ -354,14 +354,14 @@ function hook_user_view(\Drupal\user\UserInterface $account, \Drupal\entity\Plug * A renderable array representing the user. * @param \Drupal\user\UserInterface $account * The user account being rendered. - * @param \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display + * @param \Drupal\entity\Entity\EntityDisplay $display * The entity_display object holding the display options configured for the * user components. * * @see user_view() * @see hook_entity_view_alter() */ -function hook_user_view_alter(&$build, \Drupal\user\UserInterface $account, \Drupal\entity\Plugin\Core\Entity\EntityDisplay $display) { +function hook_user_view_alter(&$build, \Drupal\user\UserInterface $account, \Drupal\entity\Entity\EntityDisplay $display) { // Check for the existence of a field added by another module. if (isset($build['an_additional_field'])) { // Change its weight. diff --git a/core/modules/user/user.module b/core/modules/user/user.module index e3ff5257f7db338ae80ead376b7343c442be9b38..62ccfd691ef93fffc86f30eb79073b12567f3f11 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -4,15 +4,15 @@ use Drupal\Core\Database\Query\SelectInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Session\AccountInterface; -use Drupal\entity\Plugin\Core\Entity\EntityDisplay; -use Drupal\file\Plugin\Core\Entity\File; -use Drupal\user\Plugin\Core\Entity\User; +use Drupal\entity\Entity\EntityDisplay; +use Drupal\file\Entity\File; +use Drupal\user\Entity\User; use Drupal\user\UserInterface; use Drupal\user\RoleInterface; use Drupal\Core\Template\Attribute; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Drupal\menu_link\Plugin\Core\Entity\MenuLink; +use Drupal\menu_link\Entity\MenuLink; /** * @file diff --git a/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php b/core/modules/views/lib/Drupal/views/Entity/View.php similarity index 98% rename from core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php rename to core/modules/views/lib/Drupal/views/Entity/View.php index b23afb737a88993eefe9aa724e149ab56ebd46d7..e98ae018b3d73be79f1d59c28acdad54c3b9ea03 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Core/Entity/View.php +++ b/core/modules/views/lib/Drupal/views/Entity/View.php @@ -2,10 +2,10 @@ /** * @file - * Definition of Drupal\views\Plugin\Core\Entity\View. + * Definition of Drupal\views\Entity\View. */ -namespace Drupal\views\Plugin\Core\Entity; +namespace Drupal\views\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Entity\EntityStorageControllerInterface; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php index 2c91c5f2f0fc722aaae28884dfbded19923538dd..ccafc56fea8e7bdbc37c5340e1e02037919c7f98 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php @@ -8,7 +8,7 @@ namespace Drupal\views\Plugin\views\wizard; use Drupal\Component\Utility\NestedArray; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\Views; use Drupal\views_ui\ViewUI; use Drupal\views\Plugin\views\display\DisplayPluginBase; diff --git a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php index 87dc3a59cf61365d6ee920100caacb0d177a2f7a..bc38e499a8e2379d5e3ab0139ffd0190396306f7 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php @@ -258,7 +258,7 @@ public function testViewsFetchPluginNames() { * Helper to return an expected views option array. * * @param array $views - * An array of Drupal\views\Plugin\Core\Entity\View objects for which to + * An array of Drupal\views\Entity\View objects for which to * create an options array. * * @return array diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php index 4a696c30fc89b5a66d275a06e3d98df1c73b0040..7c065f41367f67ef871cd9d3b817c0e94c734796 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php @@ -8,7 +8,7 @@ namespace Drupal\views\Tests; use Drupal\views\ViewStorageController; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\Plugin\views\display\Page; use Drupal\views\Plugin\views\display\DefaultDisplay; use Drupal\views\Plugin\views\display\Feed; @@ -16,7 +16,7 @@ /** * Tests the functionality of View and ViewStorageController. * - * @see Drupal\views\Plugin\Core\Entity\View + * @see Drupal\views\Entity\View * @see Drupal\views\ViewStorageController */ class ViewStorageTest extends ViewUnitTestBase { @@ -221,7 +221,7 @@ protected function displayMethodTests() { ); $view = $this->controller->create($config); - // Tests Drupal\views\Plugin\Core\Entity\View::addDisplay() + // Tests Drupal\views\Entity\View::addDisplay() $view = $this->controller->create(array()); $random_title = $this->randomName(); @@ -240,7 +240,7 @@ protected function displayMethodTests() { $display = $view->get('display'); $this->assertEqual($display[$id]['display_title'], 'Page 3'); - // Tests Drupal\views\Plugin\Core\Entity\View::generateDisplayId(). + // Tests Drupal\views\Entity\View::generateDisplayId(). // @todo Sadly this method is not public so it cannot be tested. // $view = $this->controller->create(array()); // $this->assertEqual($view->generateDisplayId('default'), 'default', 'The plugin ID for default is always default.'); @@ -248,7 +248,7 @@ protected function displayMethodTests() { // $view->addDisplay('feed', 'feed title'); // $this->assertEqual($view->generateDisplayId('feed'), 'feed_2', 'The generated ID for the first instance of a plugin type should have an suffix of _2.'); - // Tests Drupal\views\Plugin\Core\Entity\View::newDisplay(). + // Tests Drupal\views\Entity\View::newDisplay(). $view = $this->controller->create(array()); $view->newDisplay('default'); diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php b/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php index 2f1b2ab09f30a7c2b0e3676ed6119807240b34e5..a4c85674bca0779cecf84c97af8ec02edc78863a 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php @@ -10,7 +10,7 @@ use Drupal\Core\Database\Query\SelectInterface; use Drupal\simpletest\WebTestBase; use Drupal\views\ViewExecutable; -use Drupal\block\Plugin\Core\Entity\Block; +use Drupal\block\Entity\Block; /** * Defines a base class for Views testing in the full web test environment. @@ -239,7 +239,7 @@ protected function executeView($view, $args = array()) { /** * Checks to see whether a block appears on the page. * - * @param \Drupal\block\Plugin\Core\Entity\Block $block + * @param \Drupal\block\Entity\Block $block * The block entity to find on the page. */ protected function assertBlockAppears(Block $block) { @@ -250,7 +250,7 @@ protected function assertBlockAppears(Block $block) { /** * Checks to see whether a block does not appears on the page. * - * @param \Drupal\block\Plugin\Core\Entity\Block $block + * @param \Drupal\block\Entity\Block $block * The block entity to find on the page. */ protected function assertNoBlockAppears(Block $block) { @@ -261,7 +261,7 @@ protected function assertNoBlockAppears(Block $block) { /** * Find a block instance on the page. * - * @param \Drupal\block\Plugin\Core\Entity\Block $block + * @param \Drupal\block\Entity\Block $block * The block entity to find on the page. * * @return array diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewsTaxonomyAutocompleteTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewsTaxonomyAutocompleteTest.php index fdd8d54dd943162be7b20742b91cbc4a72cb0e28..6dec14ca6d8eff4e89da7f6b3047ffbce93132b9 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewsTaxonomyAutocompleteTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewsTaxonomyAutocompleteTest.php @@ -94,7 +94,7 @@ public function testTaxonomyAutocomplete() { * @param string $name * (optional) The name of the taxonomy term. * - * @return \Drupal\taxonomy\Plugin\Core\Entity\Term + * @return \Drupal\taxonomy\Entity\Term * The created taxonomy term. */ protected function createTerm($name = NULL) { diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index 21c95fbe12098f0df8d3d849269ac8b0c7bf53b2..195d1737e699c6c2c1958f5c164d3a0f0773d2eb 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -29,7 +29,7 @@ class ViewExecutable { /** * The config entity in which the view is stored. * - * @var Drupal\views\Plugin\Core\Entity\View + * @var Drupal\views\Entity\View */ public $storage; diff --git a/core/modules/views/tests/Drupal/views/Tests/Plugin/Block/ViewsBlockTest.php b/core/modules/views/tests/Drupal/views/Tests/Plugin/Block/ViewsBlockTest.php index 1debfe8bd297641436ec20b46579b1e3078ddd02..94a2cf7ff88906871ef47151324ebdf1bf41cfda 100644 --- a/core/modules/views/tests/Drupal/views/Tests/Plugin/Block/ViewsBlockTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/Plugin/Block/ViewsBlockTest.php @@ -85,7 +85,7 @@ protected function setUp() { ->setMethods(NULL) ->getMock(); - $this->view = $this->getMockBuilder('Drupal\views\Plugin\Core\Entity\View') + $this->view = $this->getMockBuilder('Drupal\views\Entity\View') ->disableOriginalConstructor() ->getMock(); diff --git a/core/modules/views/tests/Drupal/views/Tests/Plugin/field/CounterTest.php b/core/modules/views/tests/Drupal/views/Tests/Plugin/field/CounterTest.php index 9bf4bfd0459ffbe1448a8be4cc7cab84314b348f..43eb50e8a2640fc0a0f464bcff6048970dbc8e75 100644 --- a/core/modules/views/tests/Drupal/views/Tests/Plugin/field/CounterTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/Plugin/field/CounterTest.php @@ -9,7 +9,7 @@ use Drupal\Component\Utility\String; use Drupal\Tests\UnitTestCase; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\Plugin\views\field\Counter; use Drupal\views\ResultRow; use Drupal\views\Tests\ViewTestData; diff --git a/core/modules/views/tests/Drupal/views/Tests/ViewExecutableUnitTest.php b/core/modules/views/tests/Drupal/views/Tests/ViewExecutableUnitTest.php index 5855bc43159ff717b32cea386317cca8f3cd7af0..650beba4eedcc89848e899a14810a0d352b8e051 100644 --- a/core/modules/views/tests/Drupal/views/Tests/ViewExecutableUnitTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/ViewExecutableUnitTest.php @@ -8,7 +8,7 @@ namespace Drupal\views\Tests; use Drupal\Tests\UnitTestCase; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\ViewExecutable; /** diff --git a/core/modules/views/tests/Drupal/views/Tests/ViewsTest.php b/core/modules/views/tests/Drupal/views/Tests/ViewsTest.php index 91c22260c855b84994c3670b86c5c6922c6680e5..04667c11c1628f91eefc2ce36c964f27169f5a1c 100644 --- a/core/modules/views/tests/Drupal/views/Tests/ViewsTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/ViewsTest.php @@ -9,7 +9,7 @@ use Drupal\Tests\UnitTestCase; use Drupal\views\Views; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\ViewExecutableFactory; use Drupal; use Drupal\Core\DependencyInjection\ContainerBuilder; diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 81b3e5962f455bb76458081d145406cdc7bee81d..5b375bf3935cdc607d2b53fac4b2b04347fbc0b5 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -14,7 +14,7 @@ use Drupal\Core\Language\Language; use Drupal\views\ViewExecutable; use Drupal\Component\Plugin\Exception\PluginException; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\Views; use Drupal\field\FieldInstanceInterface; @@ -1075,7 +1075,7 @@ function views_get_views_as_options($views_only = FALSE, $filter = 'all', $exclu /** * Returns whether the view is enabled. * - * @param Drupal\views\Plugin\Core\Entity\View $view + * @param Drupal\views\Entity\View $view * The view object to check. * * @return bool @@ -1088,7 +1088,7 @@ function views_view_is_enabled(View $view) { /** * Returns whether the view is disabled. * - * @param Drupal\views\Plugin\Core\Entity\View $view + * @param Drupal\views\Entity\View $view * The view object to check. * * @return bool @@ -1101,7 +1101,7 @@ function views_view_is_disabled(View $view) { /** * Enables and saves a view. * - * @param Drupal\views\Plugin\Core\Entity\View $view + * @param Drupal\views\Entity\View $view * The View object to disable. */ function views_enable_view(View $view) { @@ -1111,7 +1111,7 @@ function views_enable_view(View $view) { /** * Disables and saves a view. * - * @param Drupal\views\Plugin\Core\Entity\View $view + * @param Drupal\views\Entity\View $view * The View object to disable. */ function views_disable_view(View $view) { diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php index f59178297ae96c6e227a572bf14015cec50e26f7..33b81a668b4bbdd34014a037aa2add0f28df0b17 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -14,7 +14,7 @@ use Drupal\Core\TypedData\TypedDataInterface; use Drupal\Core\Session\AccountInterface; use Drupal\views\Plugin\views\query\Sql; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\ViewStorageInterface; /** @@ -100,7 +100,7 @@ class ViewUI implements ViewStorageInterface { /** * The View storage object. * - * @var \Drupal\views\Plugin\Core\Entity\View + * @var \Drupal\views\Entity\View */ protected $storage; diff --git a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php index 2bd806ebdc173b146f2bee0690ad682b6a8eacb5..ba82c0d190483e451101e142ce568d0e795477b1 100644 --- a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php +++ b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewListControllerTest.php @@ -10,7 +10,7 @@ use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Tests\UnitTestCase; -use Drupal\views\Plugin\Core\Entity\View; +use Drupal\views\Entity\View; use Drupal\views\ViewExecutableFactory; class ViewListControllerTest extends UnitTestCase { diff --git a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewUIObjectTest.php b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewUIObjectTest.php index 6aac5e4ed14828bedec5290d1e0bbb2bc4cee860..9b5211656ea39576af73431ca9cf3a76bb64b409 100644 --- a/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewUIObjectTest.php +++ b/core/modules/views_ui/tests/Drupal/views_ui/Tests/ViewUIObjectTest.php @@ -58,7 +58,7 @@ public function testEntityDecoration() { } } - $storage = $this->getMock('Drupal\views\Plugin\Core\Entity\View', $interface_methods, array(array(), 'view')); + $storage = $this->getMock('Drupal\views\Entity\View', $interface_methods, array(array(), 'view')); $executable = $this->getMockBuilder('Drupal\views\ViewExecutable') ->disableOriginalConstructor() ->setConstructorArgs(array($storage)) diff --git a/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php b/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php index cfa1e290606b166df751cdc58cb2320c0dde39af..943a1d5c1fbc2228ad0d9e67c4e94994c1fbf661 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php @@ -49,7 +49,7 @@ public function testView() { ->will($this->returnValue($render_controller)); // Mock an 'entity_test_render' entity. - $entity = $this->getMockBuilder('Drupal\entity_test\Plugin\Core\Entity\EntityTestRender') + $entity = $this->getMockBuilder('Drupal\entity_test\Entity\EntityTestRender') ->disableOriginalConstructor() ->getMock(); diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php index 563a237f87b5cd72477761aba1c5f50b145a6896..18a540361bf23b15aa16c3c4f97e55f27ed5707c 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php @@ -41,7 +41,7 @@ public function testAppliesTo() { public function testAccess() { $route = new Route('/foo', array(), array('_entity_access' => 'node.update')); $request = new Request(); - $node = $this->getMockBuilder('Drupal\node\Plugin\Core\Entity\Node') + $node = $this->getMockBuilder('Drupal\node\Entity\Node') ->disableOriginalConstructor() ->getMock(); $node->expects($this->any()) diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php index ead80b5370d7eb7fc0999f2024a0a0080fc2d875..53556eb98cfa8ed5889c1ab2313777231a0922d3 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityListControllerTest.php @@ -21,7 +21,7 @@ class EntityListControllerTest extends UnitTestCase { /** * The entity used to construct the EntityListController. * - * @var \Drupal\user\Plugin\Core\Entity\Role + * @var \Drupal\user\Entity\Role */ protected $role; @@ -53,7 +53,7 @@ public static function getInfo() { 'label' => 'label', ), 'config_prefix' => 'user.role', - 'class' => 'Drupal\user\Plugin\Core\Entity\Role', + 'class' => 'Drupal\user\Entity\Role', ); @@ -64,7 +64,7 @@ protected function setUp() { parent::setUp(); $this->role = $this - ->getMockBuilder('Drupal\user\Plugin\Core\Entity\Role') + ->getMockBuilder('Drupal\user\Entity\Role') ->setConstructorArgs(array('entityInfo' => static::$entityInfo, 'user_role')) ->getMock(); diff --git a/core/tests/Drupal/Tests/Core/Session/UserSessionTest.php b/core/tests/Drupal/Tests/Core/Session/UserSessionTest.php index 1c26b56d3a6291f3c1367daf45e7086050a2b672..10d644ad52708aa174bfba75708a6f75576a19c3 100644 --- a/core/tests/Drupal/Tests/Core/Session/UserSessionTest.php +++ b/core/tests/Drupal/Tests/Core/Session/UserSessionTest.php @@ -67,7 +67,7 @@ protected function setUp() { parent::setUp(); $roles = array(); - $roles['role_one'] = $this->getMockBuilder('Drupal\user\Plugin\Core\Entity\Role') + $roles['role_one'] = $this->getMockBuilder('Drupal\user\Entity\Role') ->disableOriginalConstructor() ->setMethods(array('hasPermission')) ->getMock(); @@ -79,7 +79,7 @@ protected function setUp() { array('last example permission', FALSE), ))); - $roles['role_two'] = $this->getMockBuilder('Drupal\user\Plugin\Core\Entity\Role') + $roles['role_two'] = $this->getMockBuilder('Drupal\user\Entity\Role') ->disableOriginalConstructor() ->setMethods(array('hasPermission')) ->getMock(); diff --git a/core/tests/Drupal/Tests/UnitTestCase.php b/core/tests/Drupal/Tests/UnitTestCase.php index d4bd53f7dcbb81ac7e8127a14008f1531195c386..c8f32a6051885a5dd5d9b72cd021e3944ba20df1 100644 --- a/core/tests/Drupal/Tests/UnitTestCase.php +++ b/core/tests/Drupal/Tests/UnitTestCase.php @@ -138,7 +138,7 @@ protected function getBlockMockWithMachineName($machine_name) { ->method('getMachineNameSuggestion') ->will($this->returnValue($machine_name)); - $block = $this->getMockBuilder('Drupal\block\Plugin\Core\Entity\Block') + $block = $this->getMockBuilder('Drupal\block\Entity\Block') ->disableOriginalConstructor() ->getMock(); $block->expects($this->any())