You are here

public function EventSubscriber::alterExcludedPaths in Fast Autocomplete 8

The excluded paths event callback.

Parameters

object $event: The event.

File

src/EventSubscriber/EventSubscriber.php, line 39

Class

EventSubscriber
Class EventSubscriber.

Namespace

Drupal\fac\EventSubscriber

Code

public function alterExcludedPaths($event) {
  $excluded_paths = $event
    ->getExcludedPaths();
  $excluded_paths[] = PublicStream::basePath() . '/fac-json';
  $event
    ->setExcludedPaths($excluded_paths);
}