3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/ui/theme/src/Plugin/Block/FarmPoweredByBlock.php

25 lines
531 B
PHP
Raw Normal View History

2020-04-28 23:29:54 +02:00
<?php
namespace Drupal\farm_ui_theme\Plugin\Block;
2020-04-28 23:29:54 +02:00
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>'];
}
}