public function FlagListItem::setConnectedEntityId in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/Entity/FlagListItem.php \Drupal\flag_lists\Entity\FlagListItem::setConnectedEntityId()
Sets the entity Id this Flag List Item is connected to.
Parameters
int $entityId: The Entity Id.
Return value
\Drupal\flag_lists\Entity\FlagListItemInterface The called Flag list item entity.
Overrides FlagListItemInterface::setConnectedEntityId
File
- src/
Entity/ FlagListItem.php, line 191
Class
- FlagListItem
- Defines the Flag list item entity.
Namespace
Drupal\flag_lists\EntityCode
public function setConnectedEntityId($entityId) {
$this
->set('entity_id', $entityId);
return $this;
}