You are here

public function Color::query in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/color/src/Plugin/migrate/source/d7/Color.php \Drupal\color\Plugin\migrate\source\d7\Color::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides VariableMultiRow::query

File

core/modules/color/src/Plugin/migrate/source/d7/Color.php, line 61

Class

Color
Drupal 7 color source from database.

Namespace

Drupal\color\Plugin\migrate\source\d7

Code

public function query() {

  // Get color data for all themes.
  $query = $this
    ->select('variable', 'v')
    ->fields('v', [
    'name',
    'value',
  ])
    ->condition('name', 'color_%', 'LIKE');
  return $query;
}