You are here

public function DummyCoder::encode in Facets Pretty Paths 8

Transforms a raw value into an url value.

Parameters

string $id: The raw value.

Return value

string The pretty value.

Overrides CoderInterface::encode

File

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

Class

DummyCoder
A dummy coder.

Namespace

Drupal\facets_pretty_paths_test\Plugin\facets_pretty_paths\coder

Code

public function encode($id) {
  return "dummy-{$id}";
}