You are here

public function OgFieldsInterface::setFieldName in Organic groups 8

Set the field name.

The field name is often the same as the plugin ID, however it is overridable. For example, the group audience field is identified as \Drupal\og\OgGroupAudienceHelper::DEFAULT_FIELD, however the actual field name attached to the bundle can be arbitrary.

Parameters

string $field_name: The field name.

Return value

$this

1 method overrides OgFieldsInterface::setFieldName()
OgFieldBase::setFieldName in src/OgFieldBase.php
Set the field name.

File

src/OgFieldsInterface.php, line 73

Class

OgFieldsInterface
The OG fields related interface.

Namespace

Drupal\og

Code

public function setFieldName($field_name);