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

Breadcrumb

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

function Help::getMaxWidth

Get the maximum width which can be used to display the help info.

Independently of user preference/auto-determined width of the current screen, a minimum width is needed to display information, so don't allow this to get too low.

Return value

int

2 calls to Help::getMaxWidth()
Help::getDescriptionColumnWidth in vendor/squizlabs/php_codesniffer/src/Util/Help.php
Get the maximum width for the text in the option description column.
Help::printCategoryOptions in vendor/squizlabs/php_codesniffer/src/Util/Help.php
Print the options for a category.

File

vendor/squizlabs/php_codesniffer/src/Util/Help.php, line 233

Class

Help

Namespace

PHP_CodeSniffer\Util

Code

private function getMaxWidth() {
    return max(self::MIN_WIDTH, $this->config->reportWidth);
}
RSS feed
Powered by Drupal