MachineNameController
class MachineNameController implements ContainerInjectionInterface (View source)
Controller routines for machine name transliteration routes.
Properties
| protected TransliterationInterface | $transliteration | The transliteration helper. |
|
| protected CsrfTokenGenerator | $tokenGenerator | The token generator. |
Methods
Constructs a MachineNameController object.
Instantiates a new instance of this class.
Transliterates a string in given language. Various postprocessing possible.
Details
__construct(TransliterationInterface $transliteration, CsrfTokenGenerator $token_generator)
Constructs a MachineNameController object.
static
create(ContainerInterface $container)
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.
JsonResponse
transliterate(Request $request)
Transliterates a string in given language. Various postprocessing possible.