dr821m.module 449 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Support module for DR-821 theme.
  4. *
  5. * It implements hooks a theme cannot implement.
  6. */
  7. use Drupal\Core\Block\BlockPluginInterface;
  8. /**
  9. * Implements hook_block_view_alter().
  10. *
  11. * Provides this capability to the theme.
  12. */
  13. function dr821m_block_view_alter(array &$build) {
  14. // Only activate if DR821 is the active theme.
  15. if (\Drupal::theme()->getActiveTheme()->getName() == 'dr821') {
  16. _dr821_block_view_alter($build);
  17. }
  18. }