You are here

public function OgFieldBase::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 OgFieldsInterface::getFieldStorageBaseDefinition

4 calls to OgFieldBase::getFieldStorageBaseDefinition()
AccessField::getFieldStorageBaseDefinition in src/Plugin/OgFields/AccessField.php
Get the field storage config base definition.
AudienceField::getFieldStorageBaseDefinition in src/Plugin/OgFields/AudienceField.php
Get the field storage config base definition.
EntityRestrictedField::getFieldStorageBaseDefinition in tests/modules/og_test/src/Plugin/OgFields/EntityRestrictedField.php
Get the field storage config base definition.
OgFieldBase::setEntityType in src/OgFieldBase.php
Set the entity type.
3 methods override OgFieldBase::getFieldStorageBaseDefinition()
AccessField::getFieldStorageBaseDefinition in src/Plugin/OgFields/AccessField.php
Get the field storage config base definition.
AudienceField::getFieldStorageBaseDefinition in src/Plugin/OgFields/AudienceField.php
Get the field storage config base definition.
EntityRestrictedField::getFieldStorageBaseDefinition in tests/modules/og_test/src/Plugin/OgFields/EntityRestrictedField.php
Get the field storage config base definition.

File

src/OgFieldBase.php, line 99

Class

OgFieldBase
OG related fields base plugin.

Namespace

Drupal\og

Code

public function getFieldStorageBaseDefinition(array $values = []) {
  $values += [
    'entity_type' => $this
      ->getEntityType(),
    'field_name' => $this
      ->getFieldName(),
  ];
  return $values;
}