public function ParagraphsItemEntity::isInUse in Paragraphs 7
Determines whether this paragraphs item revision is in use.
Paragraphs items may be contained in from non-default host entity revisions. If the paragraphs item does not appear in the default host entity revision, the item is actually not used by default and so marked as 'archived'. If the paragraphs item appears in the default revision of the host entity, the default revision of the paragraphs item is in use there and the collection is not marked as archived.
File
- ./
ParagraphsItemEntity.inc, line 361
Class
- ParagraphsItemEntity
- Entity implementation for the paragraphs entity.
Code
public function isInUse() {
return $this->default_revision && !$this->archived;
}