You are here

public function StaticProvider::getModifiers in Persistent URL 8

Return value

array

Should return an array of modifier arrays, i.e.

return array( array( "modifier" => "modifier-1", "value" => 1, ), array( "modifier" => "modifier-2", "value" => 2, ) )

In theory, "value" can be anything. However, it must be something that can be serialized for caching and can be cheaply unserialized during run-time.

Overrides ProviderInterface::getModifiers

File

src/Plugin/Purl/Provider/StaticProvider.php, line 14

Class

StaticProvider
Plugin annotation @PurlProvider( id="static" )

Namespace

Drupal\purl\Plugin\Purl\Provider

Code

public function getModifiers() {
  return array(
    'un' => 1,
    'deux' => 2,
    'trois' => 3,
    'quatre' => 4,
    'cuinq' => 5,
  );
}