From 211f695a88f52a791a870f27caf2d06e6e14562d Mon Sep 17 00:00:00 2001 From: catch Date: Tue, 26 Jan 2021 10:10:03 +0000 Subject: [PATCH] Issue #3190504 by Matroskeen, quietone: Fix documentation for node source plugins --- core/modules/node/src/Plugin/migrate/source/d6/Node.php | 8 +++++--- core/modules/node/src/Plugin/migrate/source/d7/Node.php | 8 +++++--- .../Plugin/migrate/source/d7/NodeEntityTranslation.php | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/core/modules/node/src/Plugin/migrate/source/d6/Node.php b/core/modules/node/src/Plugin/migrate/source/d6/Node.php index ee72da8d9e8..4a4442ed8ba 100644 --- a/core/modules/node/src/Plugin/migrate/source/d6/Node.php +++ b/core/modules/node/src/Plugin/migrate/source/d6/Node.php @@ -26,7 +26,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * node_type: page * @endcode * - * In this example nodes type page are retrieved from the source database. + * In this example nodes of type page are retrieved from the source database. * * @code * source: @@ -37,12 +37,14 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * In this example nodes of type page and test are retrieved from the source * database. * + * For additional configuration keys, refer to the parent classes: + * @see \Drupal\migrate\Plugin\migrate\source\SqlBase + * @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase + * * @MigrateSource( * id = "d6_node", * source_module = "node" * ) - * - * @see \Drupal\migrate\Plugin\migrate\source\SqlBase */ class Node extends DrupalSqlBase { diff --git a/core/modules/node/src/Plugin/migrate/source/d7/Node.php b/core/modules/node/src/Plugin/migrate/source/d7/Node.php index 08cd20d60df..0526bba2a72 100644 --- a/core/modules/node/src/Plugin/migrate/source/d7/Node.php +++ b/core/modules/node/src/Plugin/migrate/source/d7/Node.php @@ -26,7 +26,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * node_type: page * @endcode * - * In this example nodes type page are retrieved from the source database. + * In this example nodes of type page are retrieved from the source database. * * @code * source: @@ -37,12 +37,14 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * In this example nodes of type page and test are retrieved from the source * database. * + * For additional configuration keys, refer to the parent classes: + * @see \Drupal\migrate\Plugin\migrate\source\SqlBase + * @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase + * * @MigrateSource( * id = "d7_node", * source_module = "node" * ) - * - * @see \Drupal\migrate\Plugin\migrate\source\SqlBase */ class Node extends FieldableEntity { /** diff --git a/core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php b/core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php index 4431da37d17..c525f936f17 100644 --- a/core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php +++ b/core/modules/node/src/Plugin/migrate/source/d7/NodeEntityTranslation.php @@ -20,7 +20,7 @@ use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity; * node_type: page * @endcode * - * In this example nodes type page are retrieved from the source database. + * In this example nodes of type page are retrieved from the source database. * * @code * source: @@ -31,12 +31,14 @@ use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity; * In this example nodes of type page and test are retrieved from the source * database. * + * For additional configuration keys, refer to the parent classes: + * @see \Drupal\migrate\Plugin\migrate\source\SqlBase + * @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase + * * @MigrateSource( * id = "d7_node_entity_translation", * source_module = "entity_translation" * ) - * - * @see \Drupal\migrate\Plugin\migrate\source\SqlBase */ class NodeEntityTranslation extends FieldableEntity {