From 0a7b3e6d044d689d188622dd0d51b8a25d82225e Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 7 Feb 2017 12:56:58 +0000 Subject: [PATCH] Issue #2822975 by tedbow: Clean up unused portions of offcanvas_test module --- .../src/Plugin/Block/TestBlock.php | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 core/modules/outside_in/tests/modules/offcanvas_test/src/Plugin/Block/TestBlock.php diff --git a/core/modules/outside_in/tests/modules/offcanvas_test/src/Plugin/Block/TestBlock.php b/core/modules/outside_in/tests/modules/offcanvas_test/src/Plugin/Block/TestBlock.php deleted file mode 100644 index efb38e01be0c..000000000000 --- a/core/modules/outside_in/tests/modules/offcanvas_test/src/Plugin/Block/TestBlock.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php - -namespace Drupal\offcanvas_test\Plugin\Block; - -use Drupal\Core\Block\BlockBase; -use Drupal\Core\Url; - -/** - * Provides an 'Off-canvas test block' block. - * - * @Block( - * id = "offcanvas_links_block", - * admin_label = @Translation("Off-canvas test block") - * ) - */ -class TestBlock extends BlockBase { - - /** - * {@inheritdoc} - */ - public function build() { - return [ - 'offcanvas_link_1' => [ - '#title' => $this->t('Click Me 1!'), - '#type' => 'link', - '#url' => Url::fromRoute('offcanvas_test.thing1'), - '#attributes' => [ - 'class' => ['use-ajax'], - 'data-dialog-type' => 'offcanvas', - ], - ], - 'offcanvas_link_2' => [ - '#title' => $this->t('Click Me 2!'), - '#type' => 'link', - '#url' => Url::fromRoute('offcanvas_test.thing2'), - '#attributes' => [ - 'class' => ['use-ajax'], - 'data-dialog-type' => 'offcanvas', - ], - ], - '#attached' => [ - 'library' => [ - 'outside_in/drupal.off_canvas', - ], - ], - ]; - } - -} -- GitLab