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

Breadcrumb

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

function Table::addRow

Return value

$this

2 calls to Table::addRow()
Table::addRows in vendor/symfony/console/Helper/Table.php
Table::appendRow in vendor/symfony/console/Helper/Table.php
Adds a row to the table, and re-renders the table.

File

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

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public function addRow(TableSeparator|array $row) : static {
    if ($row instanceof TableSeparator) {
        $this->rows[] = $row;
        return $this;
    }
    $this->rows[] = array_values($row);
    return $this;
}

API Navigation

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