function AttachedAssetsInterface::createFromRenderArray

Same name in other branches
  1. 9 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::createFromRenderArray()
  2. 10 core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::createFromRenderArray()
  3. 11.x core/lib/Drupal/Core/Asset/AttachedAssetsInterface.php \Drupal\Core\Asset\AttachedAssetsInterface::createFromRenderArray()

Creates an AttachedAssetsInterface object from a render array.

Parameters

array $render_array: A render array.

Return value

static

Throws

\LogicException

1 method overrides AttachedAssetsInterface::createFromRenderArray()
AttachedAssets::createFromRenderArray in core/lib/Drupal/Core/Asset/AttachedAssets.php
Creates an AttachedAssetsInterface object from a render array.

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);

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