Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DrupalSqlBase.php

function 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.

6 calls to DrupalSqlBase::getModuleSchemaVersion()
Action::fields in core/modules/system/src/Plugin/migrate/source/Action.php
Returns available fields on the source.
Action::prepareRow in core/modules/system/src/Plugin/migrate/source/Action.php
Adds additional data to the row.
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
Adds additional data to the row.

... See full list

File

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

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 $system_data['module'][$module]['schema_version'] ?? FALSE;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal