function facets_block_block_view_facets_block_alter in Facets Block 8
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
- ./
facets_block.module, line 41 - This is the primary module file.
Code
function facets_block_block_view_facets_block_alter(array &$build, BlockPluginInterface $block) {
if (!empty($build['#configuration']['add_js_classes'])) {
$build['#pre_render'][] = '\\Drupal\\facets_block\\AddJsClasses::preRender';
}
if (!empty($build['#configuration']['hide_empty_block'])) {
$build['#pre_render'][] = '\\Drupal\\facets_block\\AddCssClasses::preRender';
}
}