interface TipPluginInterface (View source)

Defines an interface for tour items.

Methods

string
id()

Returns id of the tip.

string
getLabel()

Returns label of the tip.

string
getWeight()

Returns weight of the tip.

array
getAttributes() deprecated

Returns an array of attributes for the tip wrapper.

string
get($key)

Used for returning values by key.

set($key, $value)

Used for returning values by key.

array
getOutput() deprecated

Returns a renderable array.

Details

string id()

Returns id of the tip.

Return Value

string

The id of the tip.

string getLabel()

Returns label of the tip.

Return Value

string

The label of the tip.

string getWeight()

Returns weight of the tip.

Return Value

string

The weight of the tip.

array getAttributes() deprecated

deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. The attributes property is no longer used.

Returns an array of attributes for the tip wrapper.

Return Value

array

An array of classes and values.

See also

https://www.drupal.org/node/3204093

string get($key)

Used for returning values by key.

Parameters

$key

Return Value

string

Value of the key.

set($key, $value)

Used for returning values by key.

Parameters

$key
$value

array getOutput() deprecated

deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use getBody() instead, and do not include the tip label in the returned output.

Returns a renderable array.

Return Value

array

A renderable array.

See also

https://www.drupal.org/node/3195234