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

Breadcrumb

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

function Table::getStyleDefinition

Gets a style definition by name.

1 call to Table::getStyleDefinition()
SymfonyStyle::createTable in vendor/symfony/console/Style/SymfonyStyle.php

File

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

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public static function getStyleDefinition(string $name) : TableStyle {
    self::$styles ??= self::initStyles();
    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