You are here

ForwardDestinationBase.php in Forward 4.0.x

File

src/Plugin/migrate/destination/ForwardDestinationBase.php
View source
<?php

namespace Drupal\forward\Plugin\migrate\destination;

use Drupal\migrate\Plugin\migrate\destination\DestinationBase;
use Drupal\migrate\Plugin\MigrationInterface;

/**
 * Base class for Forward migrate destination classes.
 *
 * @see \Drupal\migrate\Plugin\MigrateDestinationInterface
 * @see \Drupal\migrate\Plugin\MigrateDestinationPluginManager
 * @see \Drupal\migrate\Annotation\MigrateDestination
 * @see plugin_api
 *
 * @ingroup migration
 */
abstract class ForwardDestinationBase extends DestinationBase {

  /**
   * The access checker service.
   *
   * @var \Drupal\Core\Database
   */
  protected $database;

  /**
   * Base class for forward migrate destination classes.
   *
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
   * @param string $plugin_id
   *   The plugin_id for the plugin instance.
   * @param mixed $plugin_definition
   *   The plugin implementation definition.
   * @param \Drupal\migrate\Plugin\MigrationInterface $migration
   *   The migration.
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration) {
    parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
    $this->database = \Drupal::database();
  }

}

Classes

Namesort descending Description
ForwardDestinationBase Base class for Forward migrate destination classes.