You are here

CoderInterface.php in Facets Pretty Paths 8

File

src/Coder/CoderInterface.php
View source
<?php

namespace Drupal\facets_pretty_paths\Coder;


/**
 * Describes the public API for coder plugins.
 */
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);

}

Interfaces

Namesort descending Description
CoderInterface Describes the public API for coder plugins.