public static function 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\AssetCode
public static function createFromRenderArray(array $render_array);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!AttachedAssetsInterface.php/function/AttachedAssetsInterface::createFromRenderArray/8.1.x