- 🇳🇿New Zealand quietone
The admin/content page is now a View. Adding a custom view would now be done with a views hook. One example is https://www.webomelette.com/creating-custom-views-filter-drupal-8.
Therefor I am closing this as outdated.
Hi,
I wanted to add a custom filter that shows in status dropdown in admin/content page but I did not find any hook to add it.
I have added drupal_alter at the end of node_filters function in node.admin.inc and used below hook in my custom module which is working fine for me to add custom filters.
/**
* Implements hook_node_custom_filters_alter().
*/
function hook_node_custom_filters_alter(&$data, $context) {
}
Please find the attachment of the patch that I have used to fix this issue
Closed: outdated
11.0 🔥
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The admin/content page is now a View. Adding a custom view would now be done with a views hook. One example is https://www.webomelette.com/creating-custom-views-filter-drupal-8.
Therefor I am closing this as outdated.