function DrupalSqlBase::getModuleSchemaVersion

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()
  3. 11.x core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()

Retrieves a module schema_version from the source Drupal database.

Parameters

string $module: Name of module.

Return value

mixed The current module schema version on the origin system table or FALSE if not found.

10 calls to DrupalSqlBase::getModuleSchemaVersion()
Action::fields in core/modules/action/src/Plugin/migrate/source/Action.php
Returns available fields on the source.
Action::prepareRow in core/modules/action/src/Plugin/migrate/source/Action.php
Adds additional data to the row.
AggregatorFeed::fields in core/modules/aggregator/src/Plugin/migrate/source/AggregatorFeed.php
Returns available fields on the source.
Block::query in core/modules/block/src/Plugin/migrate/source/Block.php
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.

... See full list

File

core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php, line 137

Class

DrupalSqlBase
A base class for source plugins using a Drupal database as a source.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

protected function getModuleSchemaVersion($module) {
    $system_data = $this->getSystemData();
    return isset($system_data['module'][$module]['schema_version']) ? $system_data['module'][$module]['schema_version'] : FALSE;
}

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