function SystemPoweredByBlock::build

Same name in other branches
  1. 9 core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock::build()
  2. 10 core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock::build()
  3. 11.x core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock::build()

File

core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php, line 27

Class

SystemPoweredByBlock
Provides a 'Powered by Drupal' block.

Namespace

Drupal\system\Plugin\Block

Code

public function build() {
    return [
        '#markup' => '<span>' . $this->t('Powered by <a href=":poweredby">Drupal</a>', [
            ':poweredby' => 'https://www.drupal.org',
        ]) . '</span>',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.