Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AttachedAssetsInterface.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal