You are here

public function ParagraphsItemEntity::forceHostEntity in Paragraphs 7

Function to force change the host entity of this paragraphs item.

Parameters

object $entity: The entity to force the host to.

File

./ParagraphsItemEntity.inc, line 223

Class

ParagraphsItemEntity
Entity implementation for the paragraphs entity.

Code

public function forceHostEntity($entity) {
  $this->hostEntity = $entity;
}