You are here

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

Class

AccessField
Determine if group should use default roles and permissions.

Namespace

Drupal\og\Plugin\OgFields

Code

public function getFieldBaseDefinition(array $values = []) {
  $values += [
    'default_value' => [
      0 => [
        'value' => 0,
      ],
    ],
    'description' => $this
      ->t('Determine if group should use default roles and permissions.'),
    'display_label' => TRUE,
    'label' => $this
      ->t('Group roles and permissions'),
    'required' => TRUE,
  ];
  return parent::getFieldBaseDefinition($values);
}