Drupal 8  8.0.2
MachineNameController Class Reference
Inheritance diagram for MachineNameController:

Public Member Functions

 __construct (TransliterationInterface $transliteration)
 
 transliterate (Request $request)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Attributes

 $transliteration
 

Detailed Description

Controller routines for machine name transliteration routes.

Constructor & Destructor Documentation

__construct ( TransliterationInterface  $transliteration)

Constructs a MachineNameController object.

Parameters
\Drupal\Component\Transliteration\TransliterationInterface$transliterationThe transliteration helper.

References Drupal\transliteration().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)
static

{Instantiates a new instance of this class.This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this instance should use.
}

Implements ContainerInjectionInterface.

transliterate ( Request  $request)

Transliterates a string in given language. Various postprocessing possible.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe input string and language for the transliteration. Optionally may contain the replace_pattern, replace, lowercase parameters.
Returns
The transliterated string.

References Unicode\strtolower(), and Drupal\transliteration().

Here is the call graph for this function:


The documentation for this class was generated from the following file: