RegionBundleTransformationRule::afterCompile()

afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation.

RegionBundleTransformationRule::beforeCreateStub()

mixed beforeCreateStub(StubbingContextInterface $context) Runs instructions to be executed before creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation. Return Value mixed The data to include in the stub version.

RegionBundleTransformationRule::afterCreateStub()

afterCreateStub(StubbingContextInterface $context) Runs instructions to be executed after creating the stub version of the resource bundle. Parameters StubbingContextInterface $context The contextual information of the compilation.

RegionBundleTransformationRule::beforeCompile()

string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. Parameters CompilationContextInterface $context The contextual information of the compilation. Return Value string[] The source directories/files of the bundle.

RegionBundleTransformationRule::getBundleName()

string getBundleName() Returns the name of the compiled resource bundle. Return Value string The name of the bundle.

RegionBundleInterface::getCountryNames()

string[] getCountryNames(string $displayLocale = null) Returns the names of all known countries. Parameters string $displayLocale Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of country names indexed by country codes

RegionBundleInterface::getCountryName()

string|null getCountryName(string $country, string $displayLocale = null) Returns the name of a country. Parameters string $country A country code (e.g. "US") string $displayLocale Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the country or NULL if not found

RegionBundle::getLocales()

string[] getLocales() Returns the list of locales that this bundle supports. Return Value string[] A list of locale codes.

RegionBundleInterface

interface RegionBundleInterface implements ResourceBundleInterface Gives access to region-related ICU data. Methods string[] getLocales() Returns the list of locales that this bundle supports. from ResourceBundleInterface string|null getCountryName(string $country, string $displayLocale = null) Returns the name of a country. string[] getCountryNames(string $displayLocale = null) Returns the names of all known countries. Details string[] getLocales

RegionBundleTransformationRule

class RegionBundleTransformationRule implements TransformationRuleInterface The rule for compiling the region bundle. Methods string getBundleName() Returns the name of the compiled resource bundle. string[] beforeCompile(CompilationContextInterface $context) Runs instructions to be executed before compiling the sources of the resource bundle. afterCompile(CompilationContextInterface $context) Runs instructions to be executed after compiling the sources of the resource bundle.