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

Breadcrumb

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

function ProfileField::setTableNames

Helper to set the profile field table names.

2 calls to ProfileField::setTableNames()
ProfileField::checkRequirements in core/modules/user/src/Plugin/migrate/source/ProfileField.php
Checks if requirements for this plugin are OK.
ProfileField::query in core/modules/user/src/Plugin/migrate/source/ProfileField.php

File

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

Class

ProfileField
Drupal 6/7 profile field source from database.

Namespace

Drupal\user\Plugin\migrate\source

Code

protected function setTableNames() {
    if (empty($this->fieldTable) || empty($this->valueTable)) {
        if ($this->getModuleSchemaVersion('system') >= 7000) {
            $this->fieldTable = 'profile_field';
            $this->valueTable = 'profile_value';
        }
        else {
            $this->fieldTable = 'profile_fields';
            $this->valueTable = 'profile_values';
        }
    }
}

API Navigation

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