You are here

public function OpignoGroupManagedContent::hasChildLink in Opigno group manager 3.x

Same name and namespace in other branches
  1. 8 src/Entity/OpignoGroupManagedContent.php \Drupal\opigno_group_manager\Entity\OpignoGroupManagedContent::hasChildLink()

Checks if this content has a child.

Return value

bool TRUE if this content has a child. FALSE otherwise.

Throws

InvalidPluginDefinitionException

File

src/Entity/OpignoGroupManagedContent.php, line 333

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function hasChildLink() {
  return !empty($this
    ->getChildrenLinks());
}