function ExtensionListCommand::renderTable
Render the table.
File
-
core/
lib/ Drupal/ Core/ Extension/ Command/ ExtensionListCommand.php, line 130
Class
- ExtensionListCommand
- List extensions.
Namespace
Drupal\Core\Extension\CommandCode
protected function renderTable(array $rows) : string {
$buffer = new BufferedOutput();
$table = new Table($buffer);
$table->setHeaders([
'Package',
'Name',
'Status',
'Version',
])
->setRows($rows)
->render();
return $buffer->fetch();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.