You are here

public static function HttpHeader::generateId in RESTful 7.2

Generates the header ID based on the header name.

Parameters

string $name: The header name.

Return value

string The ID.

Overrides HttpHeaderInterface::generateId

3 calls to HttpHeader::generateId()
HttpHeader::__construct in src/Http/HttpHeader.php
Constructor.
HttpHeaderBag::get in src/Http/HttpHeaderBag.php
Get the the header object for a header name or ID.
HttpHeaderBag::remove in src/Http/HttpHeaderBag.php
Removes a header from the bag.

File

src/Http/HttpHeader.php, line 119
Contains \Drupal\restful\Http\HttpHeader

Class

HttpHeader

Namespace

Drupal\restful\Http

Code

public static function generateId($name) {
  return strtolower($name);
}