Open amitaibu opened 8 years ago
/** @var OgMembership $membership */ $membership = OgMembership::create(['type' => OgMembershipInterface::TYPE_DEFAULT]); $membership ->setUser($this->user->id()) ->setEntityId($this->nodeGroup->id()) ->setGroupEntityType($this->nodeGroup->getEntityTypeId()) ->save(); $this->ogRole = OgRole::create(); $this->ogRole ->setId('content_editor') ->setLabel('Content editor') ->setGroupType('node') ->setGroupBundle($this->groupBundle) ->save();
OgMembership: setEntityId -> setGroupId
setEntityId
setGroupId
ogRole : setGroupType -> setGroupEntityType
setGroupType
setGroupEntityType
OgMembership:
setEntityId
->setGroupId
ogRole :
setGroupType
->setGroupEntityType