public function ConnectionServiceInterface::getConnectionCount in RedHen CRM 8
Returns the number of connections to this entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity we're querying against.
\Drupal\Core\Entity\EntityInterface $entity2: The entity we're querying against.
string $connection_type: (optional) Limit returned connections to this type.
Return value
int The number of Connection entities connected to this entity.
1 method overrides ConnectionServiceInterface::getConnectionCount()
- ConnectionService::getConnectionCount in modules/
redhen_connection/ src/ ConnectionService.php - Returns the number of connections to this entity.
File
- modules/
redhen_connection/ src/ ConnectionServiceInterface.php, line 66
Class
- ConnectionServiceInterface
- Provides an interface for getting connections between entities.
Namespace
Drupal\redhen_connectionCode
public function getConnectionCount(EntityInterface $entity, EntityInterface $entity2 = NULL, $connection_type = NULL);