Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BaseCommand.php

function BaseCommand::renderTable

Parameters

array<TableSeparator|mixed[]> $table:

Return value

void

3 calls to BaseCommand::renderTable()
BaseDependencyCommand::printTable in vendor/composer/composer/src/Composer/Command/BaseDependencyCommand.php
Assembles and prints a bottom-up table of the dependencies.
CheckPlatformReqsCommand::printTable in vendor/composer/composer/src/Composer/Command/CheckPlatformReqsCommand.php
RunScriptCommand::listScripts in vendor/composer/composer/src/Composer/Command/RunScriptCommand.php

File

vendor/composer/composer/src/Composer/Command/BaseCommand.php, line 427

Class

BaseCommand
Base class for Composer commands

Namespace

Composer\Command

Code

protected function renderTable(array $table, OutputInterface $output) {
    $renderer = new Table($output);
    $renderer->setStyle('compact');
    $renderer->setRows($table)
        ->render();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal