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

Breadcrumb

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

function Table::copyRow

2 calls to Table::copyRow()
Table::buildTableRows in vendor/symfony/console/Helper/Table.php
Table::fillNextRows in vendor/symfony/console/Helper/Table.php
fill rows that contains rowspan > 1.

File

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

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

private function copyRow(array $rows, int $line) : array {
    $row = $rows[$line];
    foreach ($row as $cellKey => $cellValue) {
        $row[$cellKey] = '';
        if ($cellValue instanceof TableCell) {
            $row[$cellKey] = new TableCell('', [
                'colspan' => $cellValue->getColspan(),
            ]);
        }
    }
    return $row;
}

API Navigation

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