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

Breadcrumb

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

function 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 132

Class

SelectorsHandler
Selectors handler.

Namespace

Behat\Mink\Selector

Code

public function xpathLiteral(string $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);
}

API Navigation

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