function IconDefinitionInterface::getData

Get a specific icon data.

Parameters

string $key: The data key to retrieve.

Return value

mixed The icon specific data if exist or null. The data being added as an array by extractors, there is no specific type enforced.

1 method overrides IconDefinitionInterface::getData()
IconDefinition::getData in core/lib/Drupal/Core/Theme/Icon/IconDefinition.php

File

core/lib/Drupal/Core/Theme/Icon/IconDefinitionInterface.php, line 181

Class

IconDefinitionInterface
Interface for icon definition.

Namespace

Drupal\Core\Theme\Icon

Code

public function getData(string $key) : mixed;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.