3 namespace Drupal\system\Plugin\migrate\source\d7;
5 use Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow;
8 * Drupal 7 system source from database.
11 * id = "d7_theme_settings",
12 * source_module = "system"
15 class ThemeSettings extends VariableMultiRow {
20 public function query() {
21 return $this->select('variable', 'v')
22 ->fields('v', ['name', 'value'])
23 ->condition('name', 'theme_%_settings', 'LIKE');
29 public function fields() {
31 'name' => $this->t('Theme settings variable for a theme.'),
32 'value' => $this->t('The theme settings variable value.'),
39 public function getIds() {
40 $ids['name']['type'] = 'string';