PhotosComment.php in Album Photos 8.4
File
src/Plugin/migrate/source/PhotosComment.php
View source
<?php
namespace Drupal\photos\Plugin\migrate\source;
use Drupal\migrate\Plugin\migrate\source\SqlBase;
class PhotosComment extends SqlBase {
public function query() {
$query = $this
->select('photos_comment', 'c')
->fields('c', [
'fid',
'cid',
]);
return $query;
}
public function fields() {
$fields = [
'fid' => $this
->t('File ID'),
'cid' => $this
->t('Comment ID'),
];
return $fields;
}
public function getIds() {
return [
'fid' => [
'type' => 'integer',
'alias' => 'c',
],
'cid' => [
'type' => 'integer',
'alias' => 'c',
],
];
}
}