Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'interface EvolvableLinkInterface
+ Graphe d'héritage de EvolvableLinkInterface:

Fonctions membres publiques

 withHref ($href)
 
 withRel ($rel)
 
 withoutRel ($rel)
 
 withAttribute ($attribute, $value)
 
 withoutAttribute ($attribute)
 

Description détaillée

An evolvable link value object.

Documentation des fonctions membres

◆ withAttribute()

withAttribute (   $attribute,
  $value 
)

Returns an instance with the specified attribute added.

If the specified attribute is already present, it will be overwritten with the new value.

Paramètres
string$attributeThe attribute to include.
string$valueThe value of the attribute to set.
Renvoie
static

Implémenté dans Link.

◆ withHref()

withHref (   $href)

Returns an instance with the specified href.

Paramètres
string$hrefThe href value to include. It must be one of:
  • An absolute URI, as defined by RFC 5988.
  • A relative URI, as defined by RFC 5988. The base of the relative link is assumed to be known based on context by the client.
  • A URI template as defined by RFC 6570.
  • An object implementing __toString() that produces one of the above values.

An implementing library SHOULD evaluate a passed object to a string immediately rather than waiting for it to be returned later.

Renvoie
static

Implémenté dans Link.

◆ withoutAttribute()

withoutAttribute (   $attribute)

Returns an instance with the specified attribute excluded.

If the specified attribute is not present, this method MUST return normally without errors.

Paramètres
string$attributeThe attribute to remove.
Renvoie
static

Implémenté dans Link.

◆ withoutRel()

withoutRel (   $rel)

Returns an instance with the specified relationship excluded.

If the specified rel is already not present, this method MUST return normally without errors.

Paramètres
string$relThe relationship value to exclude.
Renvoie
static

Implémenté dans Link.

◆ withRel()

withRel (   $rel)

Returns an instance with the specified relationship included.

If the specified rel is already present, this method MUST return normally without errors, but without adding the rel a second time.

Paramètres
string$relThe relationship value to add.
Renvoie
static

Implémenté dans Link.


La documentation de cette interface a été générée à partir du fichier suivant :