interface CoderInterface in Facets Pretty Paths 8
Describes the public API for coder plugins.
Hierarchy
- interface \Drupal\facets_pretty_paths\Coder\CoderInterface
Expanded class hierarchy of CoderInterface
All classes that implement CoderInterface
File
- src/
Coder/ CoderInterface.php, line 8
Namespace
Drupal\facets_pretty_paths\CoderView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CoderInterface:: |
public | function | Transforms a url value into a raw value. | 4 |
CoderInterface:: |
public | function | Transforms a raw value into an url value. | 4 |