diff --git a/core/modules/system/src/Plugin/Block/SystemMenuBlock.php b/core/modules/system/src/Plugin/Block/SystemMenuBlock.php index 900f59c..8e123cb 100644 --- a/core/modules/system/src/Plugin/Block/SystemMenuBlock.php +++ b/core/modules/system/src/Plugin/Block/SystemMenuBlock.php @@ -9,13 +9,13 @@ use Drupal\Core\Block\BlockBase; use Drupal\Core\Cache\Cache; -use Drupal\Core\Operations\OperationsProviderInterface; +use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Menu\MenuActiveTrailInterface; use Drupal\Core\Menu\MenuLinkTreeInterface; +use Drupal\Core\Operations\OperationsProviderInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Url; -use Drupal\Core\Extension\ModuleHandlerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php b/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php index eb0362c..2db3ddb 100644 --- a/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php +++ b/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php @@ -190,6 +190,19 @@ public function testSystemMenuBlockConfigDependencies() { ), ); $this->assertIdentical($expected, $dependencies); + } + + /** + * Tests the editing links for SystemMenuBlock. + */ + public function testOperationLinks() { + + $block = entity_create('block', array( + 'plugin' => 'system_menu_block:' . $this->menu->id(), + 'region' => 'footer', + 'id' => 'machinename', + 'theme' => 'stark', + )); $links = $block->getOperationLinks(); $menu_link = [