AclList.php in ACL 8
File
src/Plugin/migrate/source/AclList.php
View source
<?php
namespace Drupal\acl\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class AclList extends DrupalSqlBase {
public function query() {
$query = $this
->select('acl', 'a')
->fields('a', [
'acl_id',
'module',
'name',
'number',
]);
$query
->orderBy('acl_id');
return $query;
}
public function fields() {
return [
'acl_id' => $this
->t('Primary key: unique ACL ID.'),
'module' => $this
->t('The name of the module that created this ACL entry.'),
'name' => $this
->t('A name (or other identifying information) for this ACL entry, given by the module that created it.'),
'number' => $this
->t('A number for this ACL entry, given by the module that created it.'),
];
}
public function getIds() {
$ids['acl_id']['type'] = 'integer';
return $ids;
}
}
Classes
Name |
Description |
AclList |
Drupal 6/7 ACL List Table source from database. |