You are here

public function Action::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/action/src/Plugin/migrate/source/d6/Action.php \Drupal\action\Plugin\migrate\source\d6\Action::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

core/modules/action/src/Plugin/migrate/source/d6/Action.php, line 40
Contains \Drupal\action\Plugin\migrate\source\d6\Action.

Class

Action
Drupal 6 action source from database.

Namespace

Drupal\action\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'aid' => $this
      ->t('Action ID'),
    'type' => $this
      ->t('Module'),
    'callback' => $this
      ->t('Callback function'),
    'parameters' => $this
      ->t('Action configuration'),
    'description' => $this
      ->t('Action description'),
  );
}