You are here

public function SelectorsHandler::xpathLiteral in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Selector/SelectorsHandler.php \Behat\Mink\Selector\SelectorsHandler::xpathLiteral()

Translates string to XPath literal.

Parameters

string $s:

Return value

string

Deprecated

since Mink 1.7. Use \Behat\Mink\Selector\Xpath\Escaper::escapeLiteral when building Xpath or pass the unescaped value when using the named selector.

File

vendor/behat/mink/src/Selector/SelectorsHandler.php, line 124

Class

SelectorsHandler
Selectors handler.

Namespace

Behat\Mink\Selector

Code

public function xpathLiteral($s) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated as of 1.7 and will be removed in 2.0.' . ' Use \\Behat\\Mink\\Selector\\Xpath\\Escaper::escapeLiteral instead when building Xpath' . ' or pass the unescaped value when using the named selector.', E_USER_DEPRECATED);
  return $this->escaper
    ->escapeLiteral($s);
}