split footer module into static and dynamic blocks
[ryf-theme.git] / modules / footer / src / Plugin / Block / FooterBlock.php
... / ...
CommitLineData
1<?php
2/**
3 * @file
4 * Contains \Drupal\footer\Plugin\Block\FooterBlock.
5 */
6namespace Drupal\footer\Plugin\Block;
7use Drupal\Core\Menu\MenuTreeParameters;
8use Drupal\Core\Block\BlockBase;
9use Drupal\node\Entity\Node;
10use Drupal\Core\Block\BlockPluginInterface;
11use 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 */
23class 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}