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

Breadcrumb

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

function Error::getMessageWithColumnInfo

Formats message including line and column information.

Parameters

string $code Source code associated with the error, for calculation of the columns:

Return value

string Formatted message

File

vendor/nikic/php-parser/lib/PhpParser/Error.php, line 132

Class

Error

Namespace

PhpParser

Code

public function getMessageWithColumnInfo(string $code) : string {
    return sprintf('%s from %d:%d to %d:%d', $this->getRawMessage(), $this->getStartLine(), $this->getStartColumn($code), $this->getEndLine(), $this->getEndColumn($code));
}

API Navigation

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