You are here

public function OpignoGroupManagedContent::getChildrenLinks in Opigno group manager 8

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

Returns children links.

Return value

\Drupal\Core\Entity\EntityInterface[]|OpignoGroupManagedLink[] Children links.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

1 call to OpignoGroupManagedContent::getChildrenLinks()
OpignoGroupManagedContent::hasChildLink in src/Entity/OpignoGroupManagedContent.php
Checks if this content has a child.

File

src/Entity/OpignoGroupManagedContent.php, line 318

Class

OpignoGroupManagedContent
Defines the Opigno Group Content entity.

Namespace

Drupal\opigno_group_manager\Entity

Code

public function getChildrenLinks() {
  return OpignoGroupManagedLink::loadByProperties([
    'group_id' => $this
      ->getGroupId(),
    'parent_content_id' => $this
      ->id(),
  ]);
}