flags.html.twig in Flags 8
Default theme implementation for flag.
Available variables:
- flag: Flag code.
- tag: HTML tag that should be used for the flag.
- attributes: Additional attributes that should be added to the tag.
See also
7 theme calls to flags.html.twig
- CountryFlagAutocompleteController::autocomplete in flags_country/
src/ Controller/ CountryFlagAutocompleteController.php - Returns response for the country name autocompletion.
- CountryFlagFormatter::viewElements in flags_country/
src/ Plugin/ Field/ FieldFormatter/ CountryFlagFormatter.php - Builds a renderable array for a field value.
- FlagMappingListBuilder::buildRow in src/
Entity/ FlagMappingListBuilder.php - Builds a row for an entity in the entity listing.
- flags_language_language_switch_links_alter in flags_language/
flags_language.module - Implements hook_language_switch_links_alter().
- LanguagefieldFlagFormatter::viewValue in flags_languagefield/
src/ Plugin/ Field/ FieldFormatter/ LanguagefieldFlagFormatter.php - Generate the output appropriate for one field item.
File
templates/flags.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for flag.
- *
- * Available variables:
- * - flag: Flag code.
- * - tag: HTML tag that should be used for the flag.
- * - attributes: Additional attributes that should be added to the tag.
- *
- * @see template_preprocess_flags()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('flags/flags') }}
- <{{ tag }} {{ attributes }}></{{ tag }}>