public static function AttachedAssetsInterface::createFromRenderArray in Drupal 8
Same name and namespace in other branches
- 9 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\AssetCode
public static function createFromRenderArray(array $render_array);