class NoSourceModule

Same name and namespace in other branches
  1. 11.x core/modules/migrate_drupal_ui/tests/modules/migration_source_module_test/src/Plugin/migrate/source/NoSourceModule.php \Drupal\migration_source_module_test\Plugin\migrate\source\NoSourceModule
  2. 11.x core/modules/migrate_drupal_ui/tests/modules/migration_provider_test/src/Plugin/migrate/source/NoSourceModule.php \Drupal\migration_provider_test\Plugin\migrate\source\NoSourceModule

A test source plugin without a source_module.

Plugin annotation


@MigrateSource(
  id = "no_source_module",
)

Hierarchy

Expanded class hierarchy of NoSourceModule

File

core/modules/migrate_drupal_ui/tests/modules/migration_provider_test/src/Plugin/migrate/source/NoSourceModule.php, line 14

Namespace

Drupal\migration_provider_test\Plugin\migrate\source
View source
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');
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.