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

Breadcrumb

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

function WebAssert::getCurrentUrlPath

Gets current url of the page.

Return value

string

3 calls to WebAssert::getCurrentUrlPath()
WebAssert::addressEquals in vendor/behat/mink/src/WebAssert.php
Checks that current session address is equals to provided one.
WebAssert::addressMatches in vendor/behat/mink/src/WebAssert.php
Checks that current session address matches regex.
WebAssert::addressNotEquals in vendor/behat/mink/src/WebAssert.php
Checks that current session address is not equals to provided one.

File

vendor/behat/mink/src/WebAssert.php, line 851

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

protected function getCurrentUrlPath() {
    return $this->cleanUrl($this->session
        ->getCurrentUrl());
}

API Navigation

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