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

Breadcrumb

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

function ProfileField::checkRequirements

Overrides DrupalSqlBase::checkRequirements

File

core/modules/user/src/Plugin/migrate/source/ProfileField.php, line 108

Class

ProfileField
Drupal 6/7 profile field source from database.

Namespace

Drupal\user\Plugin\migrate\source

Code

public function checkRequirements() {
    $this->setTableNames();
    if (!$this->getDatabase()
        ->schema()
        ->tableExists($this->fieldTable)) {
        // If we make it to here, the profile module isn't installed.
        throw new RequirementsException('Profile module not enabled on source site');
    }
    parent::checkRequirements();
}
RSS feed
Powered by Drupal