You are here

protected function RequestSubscriber::getModifiers in Persistent URL 8

1 call to RequestSubscriber::getModifiers()
RequestSubscriber::onRequest in src/Event/RequestSubscriber.php

File

src/Event/RequestSubscriber.php, line 65

Class

RequestSubscriber
ALTERNATIVE APPROACH IS ENCAPSULATE METHOD PLUGIN LOGIC WITH A PATH PROCESSOR, AND DO MOST LOGIC WITHIN THE CONFINES OF Symfony\(Cmf\)?Routing

Namespace

Drupal\purl\Event

Code

protected function getModifiers() {
  $modifiers = $this->modifierIndex
    ->findModifiers();

  // This should no longer be necessary once caching issue in
  // ProviderManager is resolved.
  foreach ($modifiers as $i => $modifier) {
    $config = $this
      ->getProviderConfig($modifier['provider']);
    $modifiers[$i]['method'] = $config['method'];
  }
  return $modifiers;
}