Skip to content

Commit

Permalink
Merge pull request #50 from Roomify/event_owner
Browse files Browse the repository at this point in the history
Use views data defaults for event owner relationship
  • Loading branch information
nicolocaruso85 authored Feb 24, 2018
2 parents 1536409 + a0f55f4 commit 7704b8e
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions modules/bat_event/src/Entity/EventViewsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,36 +33,6 @@ public function getViewsData() {
'id' => 'bat_event_handler_event_type_field',
];

// Expose the uid as a relationship to users.
$data['event']['uid'] = [
'title' => $this->t('Uid'),
'help' => $this->t("The owner's user ID."),
'field' => [
'id' => 'views_handler_field_user',
'click sortable' => TRUE,
],
'argument' => [
'id' => 'views_handler_argument_user_uid',
'name field' => 'name',
],
'filter' => [
'title' => $this->t('Name'),
'id' => 'views_handler_filter_user_name',
],
'sort' => [
'id' => 'views_handler_sort',
],
'relationship' => [
'title' => $this->t('Owner'),
'help' => $this->t("Relate this event to its owner's user account"),
'id' => 'standard',
'base' => 'users',
'base field' => 'uid',
'field' => 'uid',
'label' => $this->t('Event owner'),
],
];

$data['event']['duration'] = [
'field' => [
'title' => $this->t('Duration'),
Expand Down

0 comments on commit 7704b8e

Please sign in to comment.