Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SystemPoweredByBlock.php

function 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>',
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal