function Color::query

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.