public function FlagMappingInterface::getOptionAttributes in Flags 8
Gets array with attributes for each option element.
Parameters
array $options: The array of keys, either language codes, or country codes.
Return value
\Drupal\Core\Template\Attribute[] List of classes per option.
1 method overrides FlagMappingInterface::getOptionAttributes()
- BaseMapping::getOptionAttributes in src/
Mapping/ BaseMapping.php - Gets array with attributes for each option element.
File
- src/
Mapping/ FlagMappingInterface.php, line 32
Class
- FlagMappingInterface
- Interface for flag mapping service to map different values to flag codes.
Namespace
Drupal\flags\MappingCode
public function getOptionAttributes(array $options = []);