protected function CivicrmEntityViewsData::getViewsRelationshipPlugin in CiviCRM Entity 8.3
Get the views argument handler.
Parameters
array $field_metadata: An array of field metadata.
Return value
array An array containing the corresponding values for the 'argument' key.
1 call to CivicrmEntityViewsData::getViewsRelationshipPlugin()
- CivicrmEntityViewsData::processViewsDataForCustomFields in src/
CivicrmEntityViewsData.php - Add views integration for custom fields.
File
- src/
CivicrmEntityViewsData.php, line 773
Class
Namespace
Drupal\civicrm_entityCode
protected function getViewsRelationshipPlugin(array $field_metadata) {
switch ($field_metadata['data_type']) {
case 'ContactReference':
return [
'id' => 'standard',
'base' => 'civicrm_contact',
'base field' => 'id',
'label' => $this
->t('@label', [
'@label' => $field_metadata['label'],
]),
];
default:
return [];
}
}