You are here

public function ConnectionServiceInterface::getConnections in RedHen CRM 8

Returns the connections to this entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity we're querying against.

\Drupal\Core\Entity\EntityInterface $entity2: The second entity we're querying against.

string $connection_type: (optional) Limit returned connections to this type.

bool $active: (optional) Return only active connections.

Return value

array The Connection entities connected to this entity.

1 method overrides ConnectionServiceInterface::getConnections()
ConnectionService::getConnections in modules/redhen_connection/src/ConnectionService.php
Returns the connections to this entity.

File

modules/redhen_connection/src/ConnectionServiceInterface.php, line 51

Class

ConnectionServiceInterface
Provides an interface for getting connections between entities.

Namespace

Drupal\redhen_connection

Code

public function getConnections(EntityInterface $entity, EntityInterface $entity2 = NULL, $connection_type = NULL, $active = TRUE);