You are here

public function ModifierIndex::findModifiers in Persistent URL 8

File

src/Plugin/ModifierIndex.php, line 20

Class

ModifierIndex

Namespace

Drupal\purl\Plugin

Code

public function findModifiers() {
  $result = $this->connection
    ->select('purl_modifiers', 'p')
    ->fields('p', array(
    'provider',
    'modifier',
    'value',
  ))
    ->execute();
  return array_map(function ($row) {
    return array_merge((array) $row, array(
      'value' => unserialize($row->value),
    ));
  }, $result
    ->fetchAll());
}