You are here

public function RegistrationInterface::hasIdentity in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/RegistrationInterface.php \Drupal\rng\Entity\RegistrationInterface::hasIdentity()

Searches registrants on this registration for an identity.

Parameters

\Drupal\Core\Entity\EntityInterface $identity: The identity to search.

Return value

bool Whether the identity is a registrant.

1 method overrides RegistrationInterface::hasIdentity()
Registration::hasIdentity in src/Entity/Registration.php
Searches registrants on this registration for an identity.

File

src/Entity/RegistrationInterface.php, line 184

Class

RegistrationInterface
Provides an interface defining a Registration entity.

Namespace

Drupal\rng\Entity

Code

public function hasIdentity(EntityInterface $identity);