Skip to content
PHP Ecosystem
Explore

HasPing

API reference › HTML Attribute › HasPing

traitUIAwesome\Html\Attribute\HasPing
Sourcesrc/HasPing.php
Used by 1 type

Provides an immutable API for the ping attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#ping.

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

Sets the ping attribute.

Defines the space-separated URL list for ping tracking.

Parameters

ParameterTypeDescription
$valuestring|Stringable|UnitEnum|nullPing URL list, or null to remove the attribute.

Returns

static: New instance with the updated ping attribute.