public function AudienceField::getFieldBaseDefinition in Organic groups 8
Get the field config base definition.
Parameters
array $values: Values to override the base definitions.
Return value
array Array that will be used as the base values for FieldConfig::create().
Overrides OgFieldBase::getFieldBaseDefinition
File
- src/
Plugin/ OgFields/ AudienceField.php, line 45
Class
- AudienceField
- Determine to which groups this group content is assigned to.
Namespace
Drupal\og\Plugin\OgFieldsCode
public function getFieldBaseDefinition(array $values = []) {
$values += [
'description' => $this
->t('OG group audience reference field.'),
'display_label' => TRUE,
'label' => $this
->t('Groups audience'),
'settings' => [
'handler' => 'og',
'handler_settings' => [],
],
];
return parent::getFieldBaseDefinition($values);
}