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

Breadcrumb

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

function TableStyle::setCrossingChars

Sets crossing characters.

Example: <code> 1═══════════════2══════════════════════════2══════════════════3 ║ ISBN │ Title │ Author ║ 8'══════════════0'═════════════════════════0'═════════════════4' ║ 99921-58-10-7 │ Divine Comedy │ Dante Alighieri ║ ║ 9971-5-0210-0 │ A Tale of Two Cities │ Charles Dickens ║ 8───────────────0──────────────────────────0──────────────────4 ║ 960-425-059-0 │ The Lord of the Rings │ J. R. R. Tolkien ║ ║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║ 7═══════════════6══════════════════════════6══════════════════5 </code>

Parameters

string $cross Crossing char (see #0 of example):

string $topLeft Top left char (see #1 of example):

string $topMid Top mid char (see #2 of example):

string $topRight Top right char (see #3 of example):

string $midRight Mid right char (see #4 of example):

string $bottomRight Bottom right char (see #5 of example):

string $bottomMid Bottom mid char (see #6 of example):

string $bottomLeft Bottom left char (see #7 of example):

string $midLeft Mid left char (see #8 of example):

string|null $topLeftBottom Top left bottom char (see #8' of example), equals to $midLeft if null:

string|null $topMidBottom Top mid bottom char (see #0' of example), equals to $cross if null:

string|null $topRightBottom Top right bottom char (see #4' of example), equals to $midRight if null:

Return value

$this

1 call to TableStyle::setCrossingChars()
TableStyle::setDefaultCrossingChar in vendor/symfony/console/Helper/TableStyle.php
Sets default crossing character used for each cross.

File

vendor/symfony/console/Helper/TableStyle.php, line 170

Class

TableStyle
Defines the styles for a Table.

Namespace

Symfony\Component\Console\Helper

Code

public function setCrossingChars(string $cross, string $topLeft, string $topMid, string $topRight, string $midRight, string $bottomRight, string $bottomMid, string $bottomLeft, string $midLeft, ?string $topLeftBottom = null, ?string $topMidBottom = null, ?string $topRightBottom = null) : static {
    $this->crossingChar = $cross;
    $this->crossingTopLeftChar = $topLeft;
    $this->crossingTopMidChar = $topMid;
    $this->crossingTopRightChar = $topRight;
    $this->crossingMidRightChar = $midRight;
    $this->crossingBottomRightChar = $bottomRight;
    $this->crossingBottomMidChar = $bottomMid;
    $this->crossingBottomLeftChar = $bottomLeft;
    $this->crossingMidLeftChar = $midLeft;
    $this->crossingTopLeftBottomChar = $topLeftBottom ?? $midLeft;
    $this->crossingTopMidBottomChar = $topMidBottom ?? $cross;
    $this->crossingTopRightBottomChar = $topRightBottom ?? $midRight;
    return $this;
}

API Navigation

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