class SubtagRegistry implements ContainerInterface (View source)

Repository of registered language subtags

Traits

SingletonTrait

Methods

__construct()

No description

has(string $type)

No description

get(string $type)

Get the repository of language subtags of a given type

array
getSubtagTypes(string $subtag)

No description

string[]
getTypeSubtags(string $type)

No description

array
getSubtag(string $type, string $tag)

Get a language subtag information

Details

__construct()

has(string $type)

Parameters

string $type Subtag type {@inheritdoc}

See also

\Psr\Container\ContainerInterface::has()

SubtagMap get(string $type)

Get the repository of language subtags of a given type

Parameters

string $type Subtag type

Return Value

SubtagMap Subtags of the given type

array getSubtagTypes(string $subtag)

Parameters

string $subtag Subtag key

Return Value

array List of type where $subtag can be found

string[] getTypeSubtags(string $type)

Parameters

string $type Subtag type

Return Value

string[] List of subtag keys of the given type

array getSubtag(string $type, string $tag)

Get a language subtag information

Parameters

string $type Subtag type
string $tag Subtag key

Return Value

array Subtag data