ExampleMigration.php in Coder 8.3
Same filename and directory in other branches
File
tests/DrupalPractice/Objects/drupal7/ExampleMigration.phpView source
<?php
/**
* A class from Drupal 7 that should not throw errors.
*/
class ExampleMigration extends ExampleMigrateBase {
/**
* {@inheritdoc}
*/
public function __construct($arguments) {
parent::__construct($arguments);
$this->description = t('Import users from the CSV.');
$columns = [
[
'uuid',
t('UUID'),
],
[
'name',
t('Username'),
],
[
'pass',
t('User password'),
],
[
'email',
t('User email'),
],
[
'role',
t('User role'),
],
[
'site',
t('Site'),
],
[
'first_name',
t('First name'),
],
[
'last_name',
t('Last name'),
],
[
'phone',
t('Phone'),
],
[
'status',
t('Status'),
],
];
}
}
Classes
Name | Description |
---|---|
ExampleMigration | A class from Drupal 7 that should not throw errors. |