public function PathautoPattern::query in Pathauto 8
Return value
\Drupal\Core\Database\Query\SelectInterface
Overrides SqlBase::query
File
- src/
Plugin/ migrate/ source/ PathautoPattern.php, line 56
Class
- PathautoPattern
- Fetches pathauto patterns from the source database.
Namespace
Drupal\pathauto\Plugin\migrate\sourceCode
public function query() {
// Fetch all pattern variables whose value is not a serialized empty string.
return $this
->select('variable', 'v')
->fields('v', [
'name',
'value',
])
->condition('name', 'pathauto_%_pattern', 'LIKE')
->condition('value', 's:0:"";', '<>');
}