diff --git a/core/modules/statistics/migration_templates/d6_statistics_node_counter.yml b/core/modules/statistics/migration_templates/d6_statistics_node_counter.yml index 403e00c56c..0f9ecb94aa 100644 --- a/core/modules/statistics/migration_templates/d6_statistics_node_counter.yml +++ b/core/modules/statistics/migration_templates/d6_statistics_node_counter.yml @@ -4,7 +4,6 @@ migration_tags: - Drupal 6 source: plugin: node_counter - source_module: statistics process: nid: - diff --git a/core/modules/statistics/migration_templates/d7_statistics_node_counter.yml b/core/modules/statistics/migration_templates/d7_statistics_node_counter.yml index ece6c01f7e..afaf7f3ac7 100644 --- a/core/modules/statistics/migration_templates/d7_statistics_node_counter.yml +++ b/core/modules/statistics/migration_templates/d7_statistics_node_counter.yml @@ -4,7 +4,6 @@ migration_tags: - Drupal 7 source: plugin: node_counter - source_module: statistics process: nid: - diff --git a/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php index aa2e30df1a..e9771f3d98 100644 --- a/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php +++ b/core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php @@ -13,10 +13,11 @@ * Destination for node counter. * * @MigrateDestination( - * id = "node_counter" + * id = "node_counter", + * destination_module = "statistics" * ) */ -class NodeCounter extends DestinationBase implements ContainerFactoryPluginInterface{ +class NodeCounter extends DestinationBase implements ContainerFactoryPluginInterface { /** * The database connection. diff --git a/core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php b/core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php index 0fef3fbd14..0877d3fbd5 100644 --- a/core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php +++ b/core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php @@ -9,7 +9,7 @@ * * @MigrateSource( * id = "node_counter", - * source_provider = "statistics" + * source_module = "statistics" * ) */ class NodeCounter extends DrupalSqlBase { diff --git a/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php index ee6ac14caa..20633483a9 100644 --- a/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php +++ b/core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php @@ -56,13 +56,13 @@ public function testStatisticsSettings() { /** * Asserts various aspects of a node counter. * - * @param integer $nid + * @param int $nid * The node ID. - * @param integer $total_count + * @param int $total_count * The expected total count. - * @param integer $day_count + * @param int $day_count * The expected day count. - * @param integer $timestamp + * @param int $timestamp * The expected timestamp. */ protected function assertNodeCounter($nid, $total_count, $day_count, $timestamp) { diff --git a/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php index 75830d1d00..2331ecb39b 100644 --- a/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php +++ b/core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php @@ -52,13 +52,13 @@ public function testStatisticsSettings() { /** * Asserts various aspects of a node counter. * - * @param integer $nid + * @param int $nid * The node ID. - * @param integer $total_count + * @param int $total_count * The expected total count. - * @param integer $day_count + * @param int $day_count * The expected day count. - * @param integer $timestamp + * @param int $timestamp * The expected timestamp. */ protected function assertNodeCounter($nid, $total_count, $day_count, $timestamp) {