class registration_handler_relationship in Entity Registration 8.2
Same name in this branch
- 8.2 src/registration_handler_relationship.php \Drupal\registration\registration_handler_relationship
- 8.2 modules/registration_views/includes/registration_handler_relationship.inc \registration_handler_relationship
- 8.2 modules/registration_views/src/registration_handler_relationship.php \Drupal\registration_views\registration_handler_relationship
Same name and namespace in other branches
- 8 modules/registration_views/includes/registration_handler_relationship.inc \registration_handler_relationship
- 7.2 modules/registration_views/includes/registration_handler_relationship.inc \registration_handler_relationship
- 7 modules/registration_views/includes/registration_handler_relationship.inc \registration_handler_relationship
Specialized relationship handler associating registrations and their host entity.
Hierarchy
- class \registration_handler_relationship extends \views_handler_relationship
Expanded class hierarchy of registration_handler_relationship
1 string reference to 'registration_handler_relationship'
- registration_views_views_data_alter in modules/registration_views/ registration_views.module 
- Implements hook_views_data_alter().
File
- modules/registration_views/ includes/ registration_handler_relationship.inc, line 13 
- Contains relationship handlers.
View source
class registration_handler_relationship extends views_handler_relationship {
  /**
   * Called to implement a relationship in a query.
   */
  function query() {
    $entity = $this->definition['entity'];
    if (isset($this->definition['table'])) {
      $this->definition['extra'][] = array(
        'table' => $this->definition['table'],
        'field' => 'entity_type',
        'value' => $this->definition['entity'],
      );
    }
    else {
      $this->definition['extra'][] = array(
        'field' => 'entity_type',
        'value' => $this->definition['entity'],
      );
    }
    parent::query();
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| registration_handler_relationship:: | function | Called to implement a relationship in a query. | 
