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

Breadcrumb

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

function AbstractStorage::delete

Delete storage or a specific key

@throw \WebDriver\Exception\UnexpectedParameters if unexpected parameters

Return value

\WebDriver\Storage\AbstractStorage

File

vendor/lullabot/php-webdriver/lib/WebDriver/Storage/AbstractStorage.php, line 96

Class

AbstractStorage
WebDriver\AbstractStorage class

Namespace

WebDriver\Storage

Code

public function delete() {
    // delete storage
    if (func_num_args() === 0) {
        $this->curl('DELETE', '');
        return $this;
    }
    // delete key from storage
    if (func_num_args() === 1) {
        $this->deleteKey(func_get_arg(0));
        return $this;
    }
    throw WebDriverException::factory(WebDriverException::UNEXPECTED_PARAMETERS);
}

API Navigation

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