You are here

public function DummyCoder::decode in Facets Pretty Paths 8

Transforms a url value into a raw value.

Parameters

string $alias: The pretty value.

Return value

string The raw value.

Overrides CoderInterface::decode

File

tests/modules/facets_pretty_paths_test/src/Plugin/facets_pretty_paths/coder/DummyCoder.php, line 28

Class

DummyCoder
A dummy coder.

Namespace

Drupal\facets_pretty_paths_test\Plugin\facets_pretty_paths\coder

Code

public function decode($alias) {
  $exploded = explode('-', $alias);
  return $exploded[1];
}