function RenderAttachedTestController::feed
Same name in other branches
- 9 core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php \Drupal\render_attached_test\Controller\RenderAttachedTestController::feed()
- 8.9.x core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php \Drupal\render_attached_test\Controller\RenderAttachedTestController::feed()
- 11.x core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php \Drupal\render_attached_test\Controller\RenderAttachedTestController::feed()
Tests attached feed rendering.
Return value
array A render array using the 'feed' directive.
1 string reference to 'RenderAttachedTestController::feed'
- render_attached_test.routing.yml in core/
modules/ system/ tests/ modules/ render_attached_test/ render_attached_test.routing.yml - core/modules/system/tests/modules/render_attached_test/render_attached_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ render_attached_test/ src/ Controller/ RenderAttachedTestController.php, line 66
Class
- RenderAttachedTestController
- Controller for various permutations of #attached in the render array.
Namespace
Drupal\render_attached_test\ControllerCode
public function feed() {
$render = [];
$render['#attached']['feed'][] = [
'test://url',
'Your RSS feed.',
];
return $render;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.