July 2017
Intermediate to advanced
456 pages
11h 32m
English
A migration source provides the initial rows that are passed to any registered processors and then ultimately to the destination entity. Drupal 8 core provides a SqlBase class that serves as the base class for migrations that read from the database. The migrate_example module contains the following:
<?php /** * @file * Contains * \Drupal\migrate_example\Plugin\migrate\source\BeerNode. */ namespace Drupal\migrate_example\Plugin\migrate\source; use Drupal\migrate\Plugin\migrate\source\SqlBase; use Drupal\migrate\Row; /** * Source plugin for beer content. * * @MigrateSource( * id = "beer_node" * ) */ class BeerNode extends SqlBase { /** * {@inheritdoc} */ public function query() { /** * An important point to note ...Read now
Unlock full access