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

Breadcrumb

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

function Table::setHeaders

Return value

$this

File

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

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public function setHeaders(array $headers) : static {
    $headers = array_values($headers);
    if ($headers && !\is_array($headers[0])) {
        $headers = [
            $headers,
        ];
    }
    $this->headers = $headers;
    return $this;
}

API Navigation

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