You are here

interface ProviderInterface in Persistent URL 8

Hierarchy

Expanded class hierarchy of ProviderInterface

All classes that implement ProviderInterface

1 file declares its use of ProviderInterface
ModifierIndex.php in src/Plugin/ModifierIndex.php

File

src/Plugin/Purl/Provider/ProviderInterface.php, line 7

Namespace

Drupal\purl\Plugin\Purl\Provider
View source
interface ProviderInterface {

  /**
   * @return 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.
   */
  public function getModifiers();
  public function setId($id);
  public function getId();

}

Members