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

Breadcrumb

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

function ElementException::__toString

Override default toString so we don't send a full backtrace in verbose mode.

Return value

string

File

vendor/behat/mink/src/Exception/ElementException.php, line 49

Class

ElementException
A standard way for elements to re-throw exceptions.

Namespace

Behat\Mink\Exception

Code

public function __toString() {
    return $this->getMessage();
}

API Navigation

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