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

Breadcrumb

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

function Table::resolveStyle

2 calls to Table::resolveStyle()
Table::setColumnStyle in vendor/symfony/console/Helper/Table.php
Sets table column style.
Table::setStyle in vendor/symfony/console/Helper/Table.php
Sets table style.

File

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

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

private function resolveStyle(TableStyle|string $name) : TableStyle {
    if ($name instanceof TableStyle) {
        return $name;
    }
    return self::$styles[$name] ?? throw new InvalidArgumentException(\sprintf('Style "%s" is not defined.', $name));
}

API Navigation

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