function DrupalSqlBase::moduleExists

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

Checks if a given module is enabled in the source Drupal database.

Parameters

string $module: Name of module to check.

Return value

bool TRUE if module is enabled on the origin system, FALSE if not.

3 calls to DrupalSqlBase::moduleExists()
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.
Field::query in core/modules/field/src/Plugin/migrate/source/d7/Field.php
FieldInstance::query in core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php

File

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

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 moduleExists($module) {
  $system_data = $this->getSystemData();
  return !empty($system_data['module'][$module]['status']);
}

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