You are here

protected function DrupalSqlBase::moduleExists in Zircon Profile 8

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

Check to see if a given module is enabled in the source installation.

Parameters

string $module: Name of module to check.

Return value

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

6 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.
Node::prepareRow in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Add additional data to the row.
NodeType::prepareRow in core/modules/node/src/Plugin/migrate/source/d7/NodeType.php
Add additional data to the row.
TestDrupal6SqlBase::moduleExistsWrapper in core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php
Wrapper method to test protected method moduleExists().
User::fields in core/modules/user/src/Plugin/migrate/source/d6/User.php
Returns available fields on the source.

... See full list

File

core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php, line 140
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 moduleExists($module) {
  $system_data = $this
    ->getSystemData();
  return !empty($system_data['module'][$module]['status']);
}