AgreementType.php in Agreement 3.0.x
File
src/Plugin/migrate/source/d7/AgreementType.php
View source
<?php
namespace Drupal\agreement\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class AgreementType extends DrupalSqlBase {
public function fields() {
return [
'name' => $this
->t('Unique name'),
'type' => $this
->t('Label'),
'path' => $this
->t('Path'),
'settings' => $this
->t('Settings'),
'agreement' => $this
->t('Agreement'),
];
}
public function getIds() {
return [
'name' => [
'type' => 'string',
],
];
}
public function query() {
return $this
->select('agreement_type', 'agreement_type')
->fields('agreement_type', [
'name',
'type',
'path',
'settings',
'agreement',
]);
}
}