public function AccessField::getFieldStorageBaseDefinition in Organic groups 8
Get the field storage 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 FieldStorageConfig::create().
Overrides OgFieldBase::getFieldStorageBaseDefinition
File
- src/
Plugin/ OgFields/ AccessField.php, line 30
Class
- AccessField
- Determine if group should use default roles and permissions.
Namespace
Drupal\og\Plugin\OgFieldsCode
public function getFieldStorageBaseDefinition(array $values = []) {
$values += [
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
'settings' => [
'allowed_values' => [
0 => 'Use default roles and permissions',
1 => 'Override default roles and permissions',
],
'allowed_values_function' => '',
],
'type' => 'list_integer',
];
return parent::getFieldStorageBaseDefinition($values);
}