- 🇳🇱Netherlands steven buteneers
Hi,
The add to any module provides a block rendering these buttons, one of the options is to override the block class with your own class by implementing hook_block_alter() and overriding the class definition:
$definitions['addtoany_block']['class'] = MyAddToAnyBlock::class;
In your own class you can then add the required pre-render callback and custom options for the blocker element:
public function build(): array { $build['#pre_render'][] = 'cookie_content_blocker.element.processor:processElement'; $build['#cookie_content_blocker'] = [...]; }