You are here

public function AccessField::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/AccessField.php, line 76

Class

AccessField
Determine if group should use default roles and permissions.

Namespace

Drupal\og\Plugin\OgFields

Code

public function getViewDisplayDefinition(array $values = []) {
  $values += [
    'type' => 'list_default',
    'label' => 'above',
  ];
  return $values;
}