You are here

public function AudienceField::getFormDisplayDefinition in Organic groups 8

Get the field's form display 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::getFormDisplayDefinition

File

src/Plugin/OgFields/AudienceField.php, line 62

Class

AudienceField
Determine to which groups this group content is assigned to.

Namespace

Drupal\og\Plugin\OgFields

Code

public function getFormDisplayDefinition(array $values = []) {
  $values += [
    'type' => 'og_complex',
    'settings' => [
      'match_operator' => 'CONTAINS',
      'size' => 60,
      'match_limit' => 10,
      'placeholder' => '',
    ],
  ];
  return $values;
}