You are here

interface CoderInterface in Facets Pretty Paths 8

Describes the public API for coder plugins.

Hierarchy

Expanded class hierarchy of CoderInterface

All classes that implement CoderInterface

File

src/Coder/CoderInterface.php, line 8

Namespace

Drupal\facets_pretty_paths\Coder
View source
interface CoderInterface {

  /**
   * Transforms a raw value into an url value.
   *
   * @param string $id
   *   The raw value.
   *
   * @return string
   *   The pretty value.
   */
  public function encode($id);

  /**
   * Transforms a url value into a raw value.
   *
   * @param string $alias
   *   The pretty value.
   *
   * @return string
   *   The raw value.
   */
  public function decode($alias);

}

Members

Namesort descending Modifiers Type Description Overrides
CoderInterface::decode public function Transforms a url value into a raw value. 4
CoderInterface::encode public function Transforms a raw value into an url value. 4