You are here

public function FlagMapping::setId in Flags 8

Sets ID.

This method is required because for some reason entity_keys in config entity annotation are ignored.

Parameters

$id:

Return value

$this

File

src/Entity/FlagMapping.php, line 54

Class

FlagMapping
Defines the flag mapping entity.

Namespace

Drupal\flags\Entity

Code

public function setId($id) {
  $this->source = $id;
  return $this;
}