CasUser.php in CAS 8
File
src/Plugin/migrate/source/d7/CasUser.php
View source
<?php
namespace Drupal\cas\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class CasUser extends DrupalSqlBase {
public function query() {
return $this
->select('cas_user', 'c')
->fields('c');
}
public function fields() {
return [
'uid' => $this
->t('The user identifier.'),
'cas_name' => $this
->t('Unique authentication name.'),
];
}
public function getIds() {
return [
'uid' => [
'type' => 'integer',
],
];
}
}
Classes
Name |
Description |
CasUser |
Drupal authmap source from database. |