You are here

function bricks_preprocess_block__system_powered_by_block in Bricks​ 2.x

Same name and namespace in other branches
  1. 8 bricks.module \bricks_preprocess_block__system_powered_by_block()

Prepares variables for `block.html.twig` for `system_powered_by_block`.

File

./bricks.module, line 400

Code

function bricks_preprocess_block__system_powered_by_block(&$variables) {
  $bricks_link = '<a href="https://uibricks.com">Bricks</a>';
  $variables['content']['#markup'] = str_replace('>Drupal</a>', '>Drupal</a> & ' . $bricks_link, $variables['content']['#markup']);
}