Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * Contains \Drupal\wkbe\Plugin\Block\LogoBylineBlock.
  6.  */
  7.  
  8. namespace Drupal\wkbe\Plugin\Block;
  9.  
  10. use Drupal\Core\Block\BlockBase;
  11. use Drupal\Core\Url;
  12.  
  13. /**
  14.  * Class LogoBylineBlock
  15.  * @package Drupal\wkbe\Plugin\Block
  16.  *
  17.  * @Block(
  18.  *   id = "logo_byline",
  19.  *   admin_label = @Translation("Logo byline"),
  20.  * )
  21.  */
  22. class LogoBylineBlock extends BlockBase {
  23.   /**
  24.    * {@inheritdoc}
  25.    */
  26.   public function build() {
  27.     $str = 'Part of the <a href=":wundergroup">Wunder Group</a>';
  28.     return array(
  29.       '#markup' => $this->t($str, array(':wundergroup' => Url::fromUri('https://wunder-group.com/')->toString())),
  30.     );
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement