You are here

public function MmmfListCommand::listCommand in Module Missing Message Fixer 2.0.x

Same name and namespace in other branches
  1. 8 src/Commands/MmmfListCommand.php \Drupal\module_missing_message_fixer\Commands\MmmfListCommand::listCommand()

Returns a list of modules that have missing messages.

@command module-missing-message-fixer:list

@usage drush module-missing-message-fixer:list Returns a list of modules that have missing messages.

@aliases mmmfl

@field-labels name: Name type: Type

File

src/Commands/MmmfListCommand.php, line 47

Class

MmmfListCommand
Class MmmfListCommand.

Namespace

Drupal\module_missing_message_fixer\Commands

Code

public function listCommand() {
  $rows = $this->fixer
    ->getTableRows();
  if (count($rows) > 0) {
    $table[] = $this->fixer
      ->getTableHeader();
    foreach ($rows as $row) {
      $table[] = $row;
    }
    return new RowsOfFields($table);
  }
  $this
    ->output()
    ->writeln('No Missing Modules Found!!!');
}