class Country in Flags 8
Maps country code to country/territory code.
Class Language
Hierarchy
- class \Drupal\flags\Mapping\BaseMapping implements FlagMappingInterface
- class \Drupal\flags\Mapping\Country
Expanded class hierarchy of Country
3 string references to 'Country'
- FlagMappingListBuilder::buildHeader in src/
Entity/ FlagMappingListBuilder.php - Builds the header row for the entity listing.
- 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
1 service uses Country
File
- src/
Mapping/ Country.php, line 10
Namespace
Drupal\flags\MappingView source
class Country extends BaseMapping {
protected $extraClasses = [
'country-flag',
];
/**
* {@inheritDoc}
*/
protected function getConfigKey() {
return 'flags.country_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. | |
Country:: |
protected | property |
Overrides BaseMapping:: |
|
Country:: |
protected | function |
Gets config key that holds list of mapping entities. Overrides BaseMapping:: |