EckEntityBundle.php in Entity Construction Kit (ECK) 8
File
src/Plugin/migrate/source/d7/EckEntityBundle.php
View source
<?php
namespace Drupal\eck\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class EckEntityBundle extends DrupalSqlBase {
public function query() {
return $this
->select('eck_bundle', 'eckb')
->fields('eckb');
}
public function fields() {
return [
'id' => $this
->t('The primary identifier for a bundle'),
'entity_type' => $this
->t('The entity type this bundle belongs to'),
'name' => $this
->t('The bundle name'),
'label' => $this
->t('A human readable name for the bundle (note that the type is not human readable)'),
'config' => $this
->t('A serialized list of the bundle settings'),
];
}
public function getIds() {
return [
'id' => [
'type' => 'integer',
],
];
}
}