class Language in Flags 8
Maps language code to country/territory code.
Class Language
Hierarchy
- class \Drupal\flags\Mapping\BaseMapping implements FlagMappingInterface
- class \Drupal\flags\Mapping\Language
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
File
- src/
Mapping/ Language.php, line 12
Namespace
Drupal\flags\MappingView source
class Language extends BaseMapping {
protected $extraClasses = [
'flag-lang',
];
/**
* {@inheritDoc}
*/
protected function getConfigKey() {
return 'flags.language_flag_mapping';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseMapping:: |
protected | property | ||
BaseMapping:: |
public | function |
Returns array of extra classes for specific mapper. Overrides FlagMappingInterface:: |
|
BaseMapping:: |
public | function |
Gets array with attributes for each option element. Overrides FlagMappingInterface:: |
|
BaseMapping:: |
function |
Maps provided string to a flag code.
Returned string should be lower case flag code. Overrides FlagMappingInterface:: |
||
BaseMapping:: |
public | function | Creates new instance of BaseMapping class. | |
Language:: |
protected | property |
Overrides BaseMapping:: |
|
Language:: |
protected | function |
Gets config key that holds list of mapping entities. Overrides BaseMapping:: |