Authmap.php in External Authentication 8
File
src/Plugin/migrate/source/Authmap.php
View source
<?php
namespace Drupal\externalauth\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class Authmap extends DrupalSqlBase {
public function query() {
return $this
->select('authmap', 'a')
->fields('a');
}
public function fields() {
return [
'uid' => $this
->t('User’s users.uid.'),
'authname' => $this
->t('Unique authentication name.'),
'module' => $this
->t('Module which is controlling the authentication.'),
];
}
public function getIds() {
return [
'uid' => [
'type' => 'integer',
],
];
}
}
Classes
Name |
Description |
Authmap |
Drupal authmap source from database. |