adjusting piwik tracking code
[ryf-theme.git] / modules / footer / src / Plugin / Block / FooterBlock.php
1 <?php
2 /**
3 * @file
4 * Contains \Drupal\footer\Plugin\Block\FooterBlock.
5 */
6 namespace Drupal\footer\Plugin\Block;
7 use Drupal\Core\Menu\MenuTreeParameters;
8 use Drupal\Core\Block\BlockBase;
9 use Drupal\node\Entity\Node;
10 use Drupal\Core\Block\BlockPluginInterface;
11 use Drupal\Core\Form\FormStateInterface;
12
13
14 /**
15 * Provides a 'footer' block.
16 *
17 * @Block(
18 * id = "footer_block",
19 * admin_label = @Translation("Footer"),
20 * category = @Translation("RYF Custom Module")
21 * )
22 */
23 class FooterBlock extends BlockBase implements BlockPluginInterface {
24 /**
25 * {@inheritdoc}
26 */
27 public function build() {
28
29 return array(
30 '#theme' => 'footer',
31 '#attached' => array(
32 'library' => array(
33 'footer/footer',
34 ),
35 ),
36 );
37
38 }
39 }