You are here

public function CorrespondingReferenceInterface::isValid in Corresponding Entity References 8.4

Checks if this corresponding reference is valid for the provided entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity to check.

Return value

bool TRUE if this reference field applies to the entity, FALSE otherwise.

1 method overrides CorrespondingReferenceInterface::isValid()
CorrespondingReference::isValid in src/Entity/CorrespondingReference.php
Checks if this corresponding reference is valid for the provided entity.

File

src/Entity/CorrespondingReferenceInterface.php, line 149

Class

CorrespondingReferenceInterface
Defines the interface for corresponding reference config entities.

Namespace

Drupal\cer\Entity

Code

public function isValid(FieldableEntityInterface $entity);