You are here

public function OgFieldsInterface::setEntityType in Organic groups 8

Set the entity type.

Parameters

string $entity_type: The entity type.

Return value

$this

Throws

\Exception Throw error if the field storage config definition explicitly defines to which entities the field can be attached to.

1 method overrides OgFieldsInterface::setEntityType()
OgFieldBase::setEntityType in src/OgFieldBase.php
Set the entity type.

File

src/OgFieldsInterface.php, line 50

Class

OgFieldsInterface
The OG fields related interface.

Namespace

Drupal\og

Code

public function setEntityType($entity_type);