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);
Please login to continue.