You are here

protected function DrupalSqlBase::getModuleSchemaVersion in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()

Get a module schema_version value in the source installation.

Parameters

string $module: Name of module.

Return value

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

8 calls to DrupalSqlBase::getModuleSchemaVersion()
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.
Node::prepareRow in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Add additional data to the row.
ProfileField::query in core/modules/user/src/Plugin/migrate/source/ProfileField.php

... See full list

File

core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php, line 126
Contains \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase.

Class

DrupalSqlBase
A base source class for Drupal migrate sources.

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;
}