public function OgFieldBase::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 OgFieldsInterface::getFieldBaseDefinition
2 calls to OgFieldBase::getFieldBaseDefinition()
- AccessField::getFieldBaseDefinition in src/
Plugin/ OgFields/ AccessField.php - Get the field config base definition.
- AudienceField::getFieldBaseDefinition in src/
Plugin/ OgFields/ AudienceField.php - Get the field config base definition.
2 methods override OgFieldBase::getFieldBaseDefinition()
- AccessField::getFieldBaseDefinition in src/
Plugin/ OgFields/ AccessField.php - Get the field config base definition.
- AudienceField::getFieldBaseDefinition in src/
Plugin/ OgFields/ AudienceField.php - Get the field config base definition.
File
- src/
OgFieldBase.php, line 111
Class
- OgFieldBase
- OG related fields base plugin.
Namespace
Drupal\ogCode
public function getFieldBaseDefinition(array $values = []) {
$values += [
'bundle' => $this
->getBundle(),
'entity_type' => $this
->getEntityType(),
'field_name' => $this
->getFieldName(),
];
return $values;
}