Skip to content

Commit

Permalink
Add extension annotation to views command. (#3688)
Browse files Browse the repository at this point in the history
  • Loading branch information
el7cosmos authored and jmolivas committed Jan 17, 2018
1 parent 2bf3d00 commit dd25b2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/services/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- { name: drupal.command }
console.views_debug:
class: Drupal\Console\Command\Debug\ViewsCommand
arguments: ['@entity_type.manager', '@plugin.manager.views.display']
arguments: ['@entity_type.manager', '@?plugin.manager.views.display']
tags:
- { name: drupal.command }
console.views_plugins_debug:
Expand Down
6 changes: 6 additions & 0 deletions src/Command/Debug/ViewsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
use Drupal\views\Entity\View;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Component\Plugin\PluginManagerInterface;
use Drupal\Console\Annotations\DrupalCommand;

/**
* Class ViewsCommand
*
* @DrupalCommand(
* extension = "views",
* extensionType = "module"
* )
*
* @package Drupal\Console\Command\Debug
*/
class ViewsCommand extends Command
Expand Down

0 comments on commit dd25b2a

Please sign in to comment.