You are here

function layout_builder_st_block_alter in Layout Builder Symmetric Translations 8

Implements hook_block_alter().

File

./layout_builder_st.module, line 68

Code

function layout_builder_st_block_alter(&$definitions) {
  foreach ($definitions as &$definition) {
    if ($definition['id'] === 'inline_block') {

      // Replace with our extended InlineBlock class to handle translations.
      $definition['class'] = InlineBlock::class;
    }
  }
}