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

Breadcrumb

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

function ServerRequestInterface::withoutAttribute

Return an instance that removes the specified derived request attribute.

This method allows removing a single derived request attribute as described in getAttributes().

This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that removes the attribute.

Parameters

string $name The attribute name.:

Return value

static

See also

getAttributes()

1 method overrides ServerRequestInterface::withoutAttribute()
ServerRequest::withoutAttribute in vendor/guzzlehttp/psr7/src/ServerRequest.php
Return an instance that removes the specified derived request attribute.

File

vendor/psr/http-message/src/ServerRequestInterface.php, line 260

Class

ServerRequestInterface
Representation of an incoming, server-side HTTP request.

Namespace

Psr\Http\Message

Code

public function withoutAttribute(string $name) : ServerRequestInterface;

API Navigation

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