mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
25 lines
522 B
PHP
25 lines
522 B
PHP
|
<?php
|
||
|
|
||
|
namespace Drupal\farm\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>'];
|
||
|
}
|
||
|
|
||
|
}
|