ThemeSettings.php in Drupal 8
File
core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php
View source
<?php
namespace Drupal\system\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow;
class ThemeSettings extends VariableMultiRow {
public function query() {
return $this
->select('variable', 'v')
->fields('v', [
'name',
'value',
])
->condition('name', 'theme_%_settings', 'LIKE');
}
public function fields() {
return [
'name' => $this
->t('Theme settings variable for a theme.'),
'value' => $this
->t('The theme settings variable value.'),
];
}
public function getIds() {
$ids['name']['type'] = 'string';
return $ids;
}
}