I wrote a custom source plugin and put it in migd8_node_blog/src/Plugin/migrate/source/Node.php with
<?php
/**
* @file
* Contains \Drupal\migd8_node_blog\Plugin\migrate\source\Node.
*/
namespace Drupal\migd8_node_blog\Plugin\migrate\source;
use Drupal\migrate\Row;
use Drupal\node\Plugin\migrate\source\d7\Node as D7Node;
/**
* Custom node source including url aliases.
*
* @MigrateSource(
* id = "migd8_node_blog_node"
* )
*/
class Node extends D7Node {
but i keep getting this error when i run drush mim migd8_node_blog Drupal\Component\Plugin\Exception\PluginNotFoundException: The "migd8_node_blog_node" plugin does not exist. even after flushing the cache and reinstalling the module.
node.php
the class would benode
, notNode
, for example. Or if the class isNode
the filename needs to beNode.php
depending on how you want to look at itdrush mim
but being explicit is good), and I'd confirm that the path you've provided to the file is relative tomodule/src
. Hopefully after that the downvoters will revisit and reconsider, as it would then be a good question IMO