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

Breadcrumb

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

function TableCell::__construct

2 calls to TableCell::__construct()
TableSeparator::__construct in vendor/symfony/console/Helper/TableSeparator.php
TableSeparator::__construct in vendor/symfony/console/Helper/TableSeparator.php
1 method overrides TableCell::__construct()
TableSeparator::__construct in vendor/symfony/console/Helper/TableSeparator.php

File

vendor/symfony/console/Helper/TableCell.php, line 27

Class

TableCell
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Console\Helper

Code

public function __construct(string $value = '', array $options = []) {
    // check option names
    if ($diff = array_diff(array_keys($options), array_keys($this->options))) {
        throw new InvalidArgumentException(\sprintf('The TableCell does not support the following options: \'%s\'.', implode('\', \'', $diff)));
    }
    if (isset($options['style']) && !$options['style'] instanceof TableCellStyle) {
        throw new InvalidArgumentException('The style option must be an instance of "TableCellStyle".');
    }
    $this->options = array_merge($this->options, $options);
}

API Navigation

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