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

Breadcrumb

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

function Table::appendRow

Adds a row to the table, and re-renders the table.

Return value

$this

File

vendor/symfony/console/Helper/Table.php, line 233

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public function appendRow(TableSeparator|array $row) : static {
    if (!$this->output instanceof ConsoleSectionOutput) {
        throw new RuntimeException(\sprintf('Output should be an instance of "%s" when calling "%s".', ConsoleSectionOutput::class, __METHOD__));
    }
    if ($this->rendered) {
        $this->output
            ->clear($this->calculateRowCount());
    }
    $this->addRow($row);
    $this->render();
    return $this;
}

API Navigation

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