Action.php in Zircon Profile 8
File
core/modules/action/src/Plugin/migrate/source/d6/Action.php
View source
<?php
namespace Drupal\action\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class Action extends DrupalSqlBase {
public function query() {
$query = $this
->select('actions', 'a')
->fields('a', array(
'aid',
'type',
'callback',
'parameters',
'description',
));
return $query;
}
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'),
);
}
public function getIds() {
$ids['aid']['type'] = 'string';
return $ids;
}
}
Classes
Name |
Description |
Action |
Drupal 6 action source from database. |