You are here

class Language in Flags 8

Maps language code to country/territory code.

Class Language

Hierarchy

Expanded class hierarchy of Language

4 string references to 'Language'
flags.services.yml in ./flags.services.yml
flags.services.yml
flags_ui.links.task.yml in flags_ui/flags_ui.links.task.yml
flags_ui/flags_ui.links.task.yml
LanguageConfigEntityFormBase::buildForm in flags_ui/src/Form/LanguageConfigEntityFormBase.php
Overrides Drupal\Core\Entity\EntityFormController::form().
LanguageFlagMappingListBuilder::buildHeader in src/Entity/LanguageFlagMappingListBuilder.php
Builds the header row for the entity listing.
1 service uses Language
flags.mapping.language in ./flags.services.yml
Drupal\flags\Mapping\Language

File

src/Mapping/Language.php, line 12

Namespace

Drupal\flags\Mapping
View source
class Language extends BaseMapping {
  protected $extraClasses = [
    'flag-lang',
  ];

  /**
   * {@inheritDoc}
   */
  protected function getConfigKey() {
    return 'flags.language_flag_mapping';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseMapping::$config protected property
BaseMapping::getExtraClasses public function Returns array of extra classes for specific mapper. Overrides FlagMappingInterface::getExtraClasses
BaseMapping::getOptionAttributes public function Gets array with attributes for each option element. Overrides FlagMappingInterface::getOptionAttributes
BaseMapping::map function Maps provided string to a flag code. Returned string should be lower case flag code. Overrides FlagMappingInterface::map
BaseMapping::__construct public function Creates new instance of BaseMapping class.
Language::$extraClasses protected property Overrides BaseMapping::$extraClasses
Language::getConfigKey protected function Gets config key that holds list of mapping entities. Overrides BaseMapping::getConfigKey