Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By despero on
I have got a list of entities rendered with a list builder I want to add a Search form above. How can I render my EntityListBuilder manually in a controller so that I can add some form filters above?
I expect this to be something like
return [
'#form' => $form,
'#list_builder' => $list_builder,
];
What is the correct way to do this?