AssetCollectionRendererInterface.php 398 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Asset;
  3. /**
  4. * Interface defining a service that generates a render array to render assets.
  5. */
  6. interface AssetCollectionRendererInterface {
  7. /**
  8. * Renders an asset collection.
  9. *
  10. * @param array $assets
  11. * An asset collection.
  12. *
  13. * @return array
  14. * A render array to render the asset collection.
  15. */
  16. public function render(array $assets);
  17. }