Skip to content

Commit

Permalink
Move views:plugins:debug to debug:views:plugins (#3390)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauhg authored and jmolivas committed Jul 5, 2017
1 parent 5eda387 commit 5da2344
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 4 additions & 0 deletions config/services/drupal-console/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ services:
class: Drupal\Console\Command\Debug\PluginCommand
tags:
- { name: drupal.command }
console.views_plugins_debug:
class: Drupal\Console\Command\Debug\ViewsPluginsCommand
tags:
- { name: drupal.command }
4 changes: 0 additions & 4 deletions config/services/drupal-console/views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ services:
arguments: ['@entity_type.manager']
tags:
- { name: drupal.command }
console.views_plugins_debug:
class: Drupal\Console\Command\Views\PluginsDebugCommand
tags:
- { name: drupal.command }
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

/**
* @file
* Contains \Drupal\Console\Command\Views\PluginsDebugCommand.
* Contains \Drupal\Console\Command\Debug\ViewsPluginsCommand.
*/

namespace Drupal\Console\Command\Views;
namespace Drupal\Console\Command\Debug;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -16,11 +16,11 @@
use Drupal\views\Views;

/**
* Class PluginsDebugCommand
* Class ViewsPluginsCommand
*
* @package Drupal\Console\Command\Views
* @package Drupal\Console\Command\Debug
*/
class PluginsDebugCommand extends Command
class ViewsPluginsCommand extends Command
{
use ContainerAwareCommandTrait;
/**
Expand All @@ -29,12 +29,12 @@ class PluginsDebugCommand extends Command
protected function configure()
{
$this
->setName('views:plugins:debug')
->setDescription($this->trans('commands.views.plugins.debug.description'))
->setName('debug:views:plugins')
->setDescription($this->trans('commands.debug.views.plugins.description'))
->addArgument(
'type',
InputArgument::OPTIONAL,
$this->trans('commands.views.plugins.debug.arguments.type')
$this->trans('commands.debug.views.plugins.arguments.type')
);
}

Expand Down Expand Up @@ -76,10 +76,10 @@ protected function pluginList(DrupalStyle $io, $type)


$tableHeader = [
$this->trans('commands.views.plugins.debug.messages.type'),
$this->trans('commands.views.plugins.debug.messages.name'),
$this->trans('commands.views.plugins.debug.messages.provider'),
$this->trans('commands.views.plugins.debug.messages.views'),
$this->trans('commands.debug.views.plugins.messages.type'),
$this->trans('commands.debug.views.plugins.messages.name'),
$this->trans('commands.debug.views.plugins.messages.provider'),
$this->trans('commands.debug.views.plugins.messages.views'),
];

$io->table($tableHeader, $rows, 'compact');
Expand Down

0 comments on commit 5da2344

Please sign in to comment.