You are here

public function CollectPathsEvent::addPath in Tome 8

Adds a single path.

Parameters

string $path: A path to add.

array $metadata: (Optional) Metadata for this path.

File

modules/tome_static/src/Event/CollectPathsEvent.php, line 60

Class

CollectPathsEvent
Wraps an array of paths that will be processed by the static generator.

Namespace

Drupal\tome_static\Event

Code

public function addPath($path, array $metadata = []) {
  $this->paths[$path] = $metadata;
}