public function OgMembershipViewsData::getViewsData in Organic groups 8
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- src/
OgMembershipViewsData.php, line 17
Class
- OgMembershipViewsData
- Provides the views data for the OG Membership entity type.
Namespace
Drupal\ogCode
public function getViewsData() {
$data = parent::getViewsData();
$data['og_membership']['og_membership_bulk_form'] = [
'title' => $this
->t('Bulk update'),
'help' => $this
->t('Add a form element that lets you run operations on multiple members.'),
'field' => [
'id' => 'og_membership_bulk_form',
],
];
return $data;
}