protected function ContactSubtype::defineOptions in CiviCRM Entity 8.3
Retrieve the options when this is a new access control plugin
Overrides ArgumentDefaultPluginBase::defineOptions
File
- src/
Plugin/ views/ argument_default/ ContactSubtype.php, line 71
Class
- ContactSubtype
- Default argument plugin to extract the current user's civicrm contact subtype
Namespace
Drupal\civicrm_entity\Plugin\views\argument_defaultCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['no_subtype'] = [
'default' => 'none',
];
$options['multiple_subtype'] = [
'default' => 'first',
];
return $options;
}