function flags_language_block_view_language_block_alter in Flags 8
Implements hook_block_view_BASE_BLOCK_ID_alter().
Implemented to attach flags CSS to the language switcher block.
Parameters
array $build:
BlockPluginInterface $block:
File
- flags_language/
flags_language.module, line 49
Code
function flags_language_block_view_language_block_alter(array &$build, BlockPluginInterface $block) {
$build['#attached']['library'][] = 'flags/flags';
}