NoSourceModule.php
Namespace
Drupal\migration_provider_test\Plugin\migrate\sourceFile
- 
              core/modules/ migrate_drupal_ui/ tests/ modules/ migration_provider_test/ src/ Plugin/ migrate/ source/ NoSourceModule.php 
View source
<?php
declare (strict_types=1);
namespace Drupal\migration_provider_test\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
/**
 * A test source plugin without a source_module.
 *
 * @MigrateSource(
 *   id = "no_source_module",
 * )
 */
class NoSourceModule extends DrupalSqlBase {
  
  /**
   * {@inheritdoc}
   */
  public function query() {
    throw new \BadMethodCallException('This method should never be called');
  }
  
  /**
   * {@inheritdoc}
   */
  public function fields() {
    throw new \BadMethodCallException('This method should never be called');
  }
  
  /**
   * {@inheritdoc}
   */
  public function getIds() {
    throw new \BadMethodCallException('This method should never be called');
  }
}Classes
| Title | Deprecated | Summary | 
|---|---|---|
| NoSourceModule | A test source plugin without a source_module. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
