Commit f1998727 authored by gbyte.co's avatar gbyte.co

Move plugins to a subdirectory for other modules to easier implement simple_sitemap plugins

parent c75da70c
<?php
/**
* @file
* Contains \Drupal\simple_sitemap\Plugin\LinkGenerator\CommerceProductType.
* Contains \Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator\CommerceProductType.
*
* Plugin for commerce product entity link generation.
*/
namespace Drupal\simple_sitemap\Plugin\LinkGenerator;
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator;
use Drupal\simple_sitemap\LinkGeneratorBase;
......
<?php
/**
* @file
* Contains \Drupal\simple_sitemap\LinkGenerator\Menu.
* Contains \Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator\Menu.
*
* Plugin for menu entity link generation.
*/
namespace Drupal\simple_sitemap\Plugin\LinkGenerator;
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator;
use Drupal\simple_sitemap\LinkGeneratorBase;
......
<?php
/**
* @file
* Contains \Drupal\simple_sitemap\Plugin\LinkGenerator\NodeType.
* Contains \Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator\NodeType.
*
* Plugin for node entity link generation.
*/
namespace Drupal\simple_sitemap\Plugin\LinkGenerator;
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator;
use Drupal\simple_sitemap\LinkGeneratorBase;
......
<?php
/**
* @file
* Contains \Drupal\simple_sitemap\LinkGenerator\TaxonomyVocabulary.
* Contains \Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator\TaxonomyVocabulary.
*
* Plugin for taxonomy term entity link generation.
*/
namespace Drupal\simple_sitemap\Plugin\LinkGenerator;
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator;
use Drupal\simple_sitemap\LinkGeneratorBase;
......
<?php
/**
* @file
* Contains \Drupal\simple_sitemap\Plugin\LinkGenerator\User.
* Contains \Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator\User.
*
* Plugin for user link generation.
*/
namespace Drupal\simple_sitemap\Plugin\LinkGenerator;
namespace Drupal\simple_sitemap\Plugin\simple_sitemap\LinkGenerator;
use Drupal\simple_sitemap\LinkGeneratorBase;
......
......@@ -27,7 +27,7 @@ class SimplesitemapManager extends DefaultPluginManager {
* The module handler to invoke the alter hook with.
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/LinkGenerator', $namespaces, $module_handler, 'Drupal\simple_sitemap\LinkGeneratorInterface', 'Drupal\simple_sitemap\Annotation\LinkGenerator');
parent::__construct('Plugin/simple_sitemap/LinkGenerator', $namespaces, $module_handler, 'Drupal\simple_sitemap\LinkGeneratorInterface', 'Drupal\simple_sitemap\Annotation\LinkGenerator');
$this->alterInfo('simple_sitemap_link_generators_info');
$this->setCacheBackend($cache_backend, 'simple_sitemap_link_generators');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment