Skip to content
PHP Ecosystem
Explore

HasReferrerpolicy

API reference › HTML Attribute › HasReferrerpolicy

traitUIAwesome\Html\Attribute\HasReferrerpolicy
Sourcesrc/HasReferrerpolicy.php
Used by 3 types

Provides an immutable API for the referrerpolicy attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/referrerpolicy.

MethodDescriptionDefined by
referrerpolicy()Sets the referrerpolicy attribute.HasReferrerpolicy
public function referrerpolicy(string|Stringable|UnitEnum|null $value): static

Sets the referrerpolicy attribute.

Controls how much referrer information is sent with requests.

Parameters

ParameterTypeDescription
$valuestring|Stringable|UnitEnum|nullReferrer policy token, or null to remove the attribute.

Returns

static: New instance with the updated referrerpolicy attribute. Referrerpolicy for predefined enum values.

Throws