public function ForumAccess::fields in Forum Access 8
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
- forum_access_migrate/
src/ Plugin/ migrate/ source/ ForumAccess.php, line 40
Class
- ForumAccess
- Provides table source plugin.
Namespace
Drupal\forum_access_migrate\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'tid' => $this
->t('The term ID.'),
'rid' => $this
->t('The role ID'),
'grant_view' => $this
->t('Grant view'),
'grant_update' => $this
->t('Grant update'),
'grant_delete' => $this
->t('Grant delete'),
'grant_create' => $this
->t('Grant create'),
'priority' => $this
->t('Priority'),
'moderators' => $this
->t('Moderators'),
];
return $fields;
}