ThemeSettings.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php
- 9 core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php
- 9 core/lib/Drupal/Core/Theme/ThemeSettings.php
- 8.9.x core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php
- 8.9.x core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php
- 8.9.x core/lib/Drupal/Core/Theme/ThemeSettings.php
- 11.x core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php
- 11.x core/modules/system/src/Plugin/migrate/source/d7/ThemeSettings.php
- 11.x core/lib/Drupal/Core/Theme/ThemeSettings.php
Namespace
Drupal\system\Plugin\migrate\source\d7File
-
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;
/**
* Drupal 7 theme settings source from database.
*
* For available configuration keys, refer to the parent classes.
*
* @see \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow
* @see \Drupal\migrate\Plugin\migrate\source\SqlBase
* @see \Drupal\migrate\Plugin\migrate\source\SourcePluginBase
*
* @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;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ThemeSettings | Drupal 7 theme settings source from database. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.