Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file
- * Contains \Drupal\wkbe\Plugin\Block\LogoBylineBlock.
- */
- namespace Drupal\wkbe\Plugin\Block;
- use Drupal\Core\Block\BlockBase;
- use Drupal\Core\Url;
- /**
- * Class LogoBylineBlock
- * @package Drupal\wkbe\Plugin\Block
- *
- * @Block(
- * id = "logo_byline",
- * admin_label = @Translation("Logo byline"),
- * )
- */
- class LogoBylineBlock extends BlockBase {
- /**
- * {@inheritdoc}
- */
- public function build() {
- $str = 'Part of the <a href=":wundergroup">Wunder Group</a>';
- return array(
- '#markup' => $this->t($str, array(':wundergroup' => Url::fromUri('https://wunder-group.com/')->toString())),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement