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

Breadcrumb

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

function AbstractStorage::get

Get all keys from storage or a specific key/value pair

Return value

mixed

File

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

Class

AbstractStorage
WebDriver\AbstractStorage class

Namespace

WebDriver\Storage

Code

public function get() {
    // get all keys
    if (func_num_args() === 0) {
        $result = $this->curl('GET', '');
        return $result['value'];
    }
    // get key/value pair
    if (func_num_args() === 1) {
        return $this->getKey(func_get_arg(0));
    }
    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