function Recipe::getExtra

Returns extra information to expose to a particular extension.

Parameters

string $extension_name: The name of a Drupal extension.

Return value

mixed The extra data exposed to the given extension, or NULL if there is none.

File

core/lib/Drupal/Core/Recipe/Recipe.php, line 468

Class

Recipe
@internal This API is experimental.

Namespace

Drupal\Core\Recipe

Code

public function getExtra(string $extension_name) : mixed {
    return $this->extra[$extension_name] ?? NULL;
}

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