You are here

public function ModifierIndex::performDueRebuilds in Persistent URL 8

File

src/Plugin/ModifierIndex.php, line 94

Class

ModifierIndex

Namespace

Drupal\purl\Plugin

Code

public function performDueRebuilds() {
  $result = $this->connection
    ->select('purl_providers_settings', 'p')
    ->fields('p', array(
    'provider',
    'method',
  ))
    ->condition('p.rebuild', 1)
    ->execute();
  foreach ($result
    ->fetchAll() as $row) {
    $provider = $this->providerManager
      ->getProvider($row->provider);
    $this
      ->indexModifiers($provider, $row->method);
  }
}