function SystemPoweredByBlock::build
Same name in other branches
- 9 core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock::build()
- 8.9.x core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php \Drupal\system\Plugin\Block\SystemPoweredByBlock::build()
- 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\BlockCode
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.