function SystemPoweredByBlock::build

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

Overrides BlockPluginInterface::build

File

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

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.