Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. /**
  3. * Provides a 'SLS Block' Block
  4. *
  5. * @Block(
  6. * id = "SLS-Subheader",
  7. * admin_label = @Translation("SLS Subheader"),
  8. * )
  9. */
  10.  
  11. namespace DrupalsubheaderPluginBlock;
  12.  
  13. use DrupalCoreBlockBlockBase;
  14.  
  15. class SubheaderBlock extends BlockBase {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function build() {
  20.  
  21.  
  22. return array(
  23. '#title' => "test",
  24. );
  25. }
  26. }
  27. ?>
  28.  
  29. <?php
  30. /**
  31. * Implements hook_theme().
  32. */
  33.  
  34. function subheader_theme() {
  35. return array(
  36. 'slssubheader' => array(
  37. 'variables' => array('pierre' => NULL),
  38. 'template' => 'specifictemplate',
  39. ),
  40. );
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement