You are here

class Country in Flags 8

Maps country code to country/territory code.

Class Language

Hierarchy

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
flags.mapping.country in ./flags.services.yml
Drupal\flags\Mapping\Country

File

src/Mapping/Country.php, line 10

Namespace

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

  /**
   * {@inheritDoc}
   */
  protected function getConfigKey() {
    return 'flags.country_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.
Country::$extraClasses protected property Overrides BaseMapping::$extraClasses
Country::getConfigKey protected function Gets config key that holds list of mapping entities. Overrides BaseMapping::getConfigKey