You are here

public function EntityRestrictedField::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

tests/modules/og_test/src/Plugin/OgFields/EntityRestrictedField.php, line 44

Class

EntityRestrictedField
A test field that can be attached only to the node entity.

Namespace

Drupal\og_test\Plugin\OgFields

Code

public function getViewDisplayDefinition(array $values = []) {
  return [];
}