public function ConnectionServiceInterface::getConnectionTypes in RedHen CRM 8
Returns connection types that can be connected to 1 or 2 entities.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: Entity 1.
\Drupal\Core\Entity\EntityInterface $entity2: Entity 2.
Return value
array Connection types that can be used between the 1 or 2 entities.
1 method overrides ConnectionServiceInterface::getConnectionTypes()
- ConnectionService::getConnectionTypes in modules/
redhen_connection/ src/ ConnectionService.php - Returns connection types that can be connected to 1 or 2 entities.
File
- modules/
redhen_connection/ src/ ConnectionServiceInterface.php, line 34
Class
- ConnectionServiceInterface
- Provides an interface for getting connections between entities.
Namespace
Drupal\redhen_connectionCode
public function getConnectionTypes(EntityInterface $entity, EntityInterface $entity2 = NULL);