You are here

public function ActivityInterface::hasParticipant in CRM Core 8

Same name and namespace in other branches
  1. 8.3 modules/crm_core_activity/src/ActivityInterface.php \Drupal\crm_core_activity\ActivityInterface::hasParticipant()
  2. 8.2 modules/crm_core_activity/src/ActivityInterface.php \Drupal\crm_core_activity\ActivityInterface::hasParticipant()

Check if participant exists in the activity.

Parameters

\Drupal\crm_core_contact\ContactInterface $contact: The contact to check in activity participant.

Return value

bool Returns TRUE if activity has a given contact/participant.

1 method overrides ActivityInterface::hasParticipant()
Activity::hasParticipant in modules/crm_core_activity/src/Entity/Activity.php
Check if participant exists in the activity.

File

modules/crm_core_activity/src/ActivityInterface.php, line 34

Class

ActivityInterface
Defines methods for CRM Activity entities.

Namespace

Drupal\crm_core_activity

Code

public function hasParticipant(ContactInterface $contact);