public function AudienceField::getViewDisplayDefinition in Organic groups 8
Get the field's view modes 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 OgFieldsInterface::getViewDisplayDefinition
File
- src/
Plugin/ OgFields/ AudienceField.php, line 79
Class
- AudienceField
- Determine to which groups this group content is assigned to.
Namespace
Drupal\og\Plugin\OgFieldsCode
public function getViewDisplayDefinition(array $values = []) {
$values += [
'label' => 'above',
'type' => 'entity_reference_label',
'settings' => [
'link' => TRUE,
],
];
return $values;
}