farmOS/modules/ui/theme/src/Plugin/Block/FarmPoweredByBlock.php

25 lines
531 B
PHP

<?php
namespace Drupal\farm_ui_theme\Plugin\Block;
use Drupal\system\Plugin\Block\SystemPoweredByBlock;
/**
* Provides a 'Powered by farmOS' block.
*
* @Block(
* id = "farm_powered_by_block",
* admin_label = @Translation("Powered by farmOS")
* )
*/
class FarmPoweredByBlock extends SystemPoweredByBlock {
/**
* {@inheritdoc}
*/
public function build() {
return ['#markup' => '<span>' . $this->t('Powered by <a href=":poweredby">farmOS</a>', [':poweredby' => 'https://farmOS.org']) . '</span>'];
}
}