You are here

public function ConnectionType::getEndpointEntityTypeId in RedHen CRM 8

Gets the connection type's entity type ID by endpoint.

E.g, if connections of this type are configured to allow Contacts to connect with other Contacts, this will return redhen_contact for both endpoints.

Parameters

int $num: The endpoint to return the entity type for.

Return value

string The entity type ID for endpoint $num.

Overrides ConnectionTypeInterface::getEndpointEntityTypeId

1 call to ConnectionType::getEndpointEntityTypeId()
ConnectionType::getEndpointEntityTypes in modules/redhen_connection/src/Entity/ConnectionType.php
Gets all entity types for this connection type.

File

modules/redhen_connection/src/Entity/ConnectionType.php, line 82

Class

ConnectionType
Defines the Connection type entity.

Namespace

Drupal\redhen_connection\Entity

Code

public function getEndpointEntityTypeId($num) {
  $entity_type = NULL;
  if (isset($this->endpoints[$num]['entity_type'])) {
    $entity_type = $this->endpoints[$num]['entity_type'];
  }
  return $entity_type;
}