You are here

public function AclList::fields in ACL 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/AclList.php \Drupal\acl\Plugin\migrate\source\AclList::fields()
  2. 8 src/Plugin/migrate/destination/AclList.php \Drupal\acl\Plugin\migrate\destination\AclList::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

src/Plugin/migrate/source/AclList.php, line 37

Class

AclList
Drupal 6/7 ACL List Table source from database.

Namespace

Drupal\acl\Plugin\migrate\source

Code

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.'),
  ];
}