
| Current Path : /var/www/html/dataninja.cn/core/modules/system/src/Plugin/migrate/source/d7/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/dataninja.cn/core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php |
<?php
namespace Drupal\system\Plugin\migrate\source\d7;
use Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow;
/**
* Drupal 7 system source from database.
*
* @MigrateSource(
* id = "d7_theme_settings",
* source_module = "system"
* )
*/
class ThemeSettings extends VariableMultiRow {
/**
* {@inheritdoc}
*/
public function query() {
return $this->select('variable', 'v')
->fields('v', ['name', 'value'])
->condition('name', 'theme_%_settings', 'LIKE');
}
/**
* {@inheritdoc}
*/
public function fields() {
return [
'name' => $this->t('Theme settings variable for a theme.'),
'value' => $this->t('The theme settings variable value.'),
];
}
/**
* {@inheritdoc}
*/
public function getIds() {
$ids['name']['type'] = 'string';
return $ids;
}
}