You are here

public function StaticGeneratorInterface::requestPath in Tome 8

Requests and exports a given path.

This method should only be called for paths that need a Drupal bootstrap.

Note that calling this method multiple times in one bootstrap may have result in improper renders - it's recommended that this is called once per request.

Parameters

string $path: A path to export, or an entity to load and export in the format "_entity:entity_type_id:langcode:entity_id".

Return value

string[] An array of paths that should be passed to ::exportPaths.

1 method overrides StaticGeneratorInterface::requestPath()
StaticGenerator::requestPath in modules/tome_static/src/StaticGenerator.php
Requests and exports a given path.

File

modules/tome_static/src/StaticGeneratorInterface.php, line 53

Class

StaticGeneratorInterface
Provides an interface for the static generator.

Namespace

Drupal\tome_static

Code

public function requestPath($path);