You are here

public function CollectPathsEvent::getPaths in Tome 8

Gets the paths.

Parameters

bool $with_metadata: Whether or not metadata should be returned. Defaults to FALSE.

Return value

array An array of paths, or an array mapping path names to metadata.

File

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

Class

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

Namespace

Drupal\tome_static\Event

Code

public function getPaths($with_metadata = FALSE) {
  return $with_metadata ? $this->paths : array_keys($this->paths);
}