Entity Administration UI

Component ID

2053825

Component name

Entity Administration UI

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides an enhanced base class for use in conjunction with the Entity module's administration pages. On it's own this module doesn't do much of anything, but when combined with the Entity module the EntityAdminUIDefaultUIController class provided here makes for a more feature full replacement for the EntityIDefaultUIController class provided with the entity module.

The primary focus is on the the main administrative listing page defined by hook_entity_info(). The page provided by the entity module is fairly straight forward and provides just a simple table with Label, and links to edit/delete an entity. This enhanced controller provides a complete set of filters and bulk operations akin to what user's are used to encountering with other entity admin pages like admin/content and admin/people in Drupal core.

To use the features provided by this module you'll need to first create your custom entity type following the normal means with the Entity module. Then, instead of using the default UI controller you can either use or extend the one provided by this module.

function hook_entity_info() {
  $info['my_entity'] = array(
    ...
    'admin ui' => array(
      'path' => 'admin/my_entity',
      'controller class' => 'EntityAdminUIDefaultUIController',
      'menu wildcard' => '%my_entity',
    ),
    ...
  );
  return $info;
}

See the README.md file for more examples of how to use the controller and extend the set of available filters and bulk operations.