3 namespace Drupal\system\Plugin\Block;
5 use Drupal\Core\Block\BlockBase;
8 * Provides a 'Powered by Drupal' block.
11 * id = "system_powered_by_block",
12 * admin_label = @Translation("Powered by Drupal")
15 class SystemPoweredByBlock extends BlockBase {
20 public function defaultConfiguration() {
21 return ['label_display' => FALSE];
27 public function build() {
28 return ['#markup' => '<span>' . $this->t('Powered by <a href=":poweredby">Drupal</a>', [':poweredby' => 'https://www.drupal.org']) . '</span>'];