AttachedAssetsInterface::createFromRenderArray

public static AttachedAssetsInterface::createFromRenderArray(array $render_array)

Creates an AttachedAssetsInterface object from a render array.

Parameters

array $render_array: A render array.

Return value

\Drupal\Core\Asset\AttachedAssetsInterface

Throws

\LogicException

File

core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php, line 28

Class

AttachedAssetsInterface
The attached assets collection for the current response.

Namespace

Drupal\Core\Asset

Code

public static function createFromRenderArray(array $render_array);
doc_Drupal
2016-10-29 08:44:57
Comments
Leave a Comment

Please login to continue.