class PartyHatUIController in Party 7
Same name and namespace in other branches
- 8.2 modules/party_hat/includes/party_hat.entity.inc \PartyHatUIController
UI controller.
Hierarchy
- class \EntityDefaultUIController
- class \PartyHatUIController
Expanded class hierarchy of PartyHatUIController
1 string reference to 'PartyHatUIController'
- party_hat_entity_info in modules/
party_hat/ party_hat.module - Implements hook_entity_info().
File
- modules/
party_hat/ includes/ party_hat.entity.inc, line 107 - Contains the controller classes for Party entities.
View source
class PartyHatUIController extends EntityDefaultUIController {
/**
* Overrides hook_menu() defaults.
*/
public function hook_menu() {
$items = parent::hook_menu();
$items[$this->path]['title'] = 'Manage hats';
// Set the main hat admin page as a local task so it appears within the
// main Community admin area.
$items[$this->path]['type'] = MENU_LOCAL_TASK;
// Disambiguate the 'list' tab.
$items[$this->path . '/list']['title'] = 'List hats';
return $items;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
public | property | Defines the number of entries to show per page in overview table. | |
EntityDefaultUIController:: |
public | function | Applies an operation to the given entity. | |
EntityDefaultUIController:: |
public | function | Entity submit builder invoked via entity_ui_form_submit_build_entity(). | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_forms(). | |
EntityDefaultUIController:: |
protected | function | Returns the operation count for calculating colspans. | |
EntityDefaultUIController:: |
public | function | Builds the operation form. | |
EntityDefaultUIController:: |
public | function | Operation form submit callback. | 1 |
EntityDefaultUIController:: |
public | function | Operation form validation callback. | |
EntityDefaultUIController:: |
public | function | Builds the entity overview form. | |
EntityDefaultUIController:: |
public | function | Overview form submit callback. | |
EntityDefaultUIController:: |
public | function | Overview form validation callback. | |
EntityDefaultUIController:: |
public | function | Generates the render array for a overview table for arbitrary entities matching the given conditions. | |
EntityDefaultUIController:: |
protected | function | Generates the table headers for the overview table. | |
EntityDefaultUIController:: |
protected | function | Generates the row for the passed entity and may be overridden in order to customize the rows. | |
EntityDefaultUIController:: |
public | function | ||
PartyHatUIController:: |
public | function |
Overrides hook_menu() defaults. Overrides EntityDefaultUIController:: |