public function CorrespondingReferenceInterface::hasCorrespondingFields in Corresponding Entity References 8.4
Checks whether the given entity has the configured corresponding reference fields.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity.
Return value
bool TRUE if the entity has corresponding fields, FALSE otherwise.
1 method overrides CorrespondingReferenceInterface::hasCorrespondingFields()
- CorrespondingReference::hasCorrespondingFields in src/
Entity/ CorrespondingReference.php - Checks whether the given entity has the configured corresponding reference fields.
File
- src/
Entity/ CorrespondingReferenceInterface.php, line 160
Class
- CorrespondingReferenceInterface
- Defines the interface for corresponding reference config entities.
Namespace
Drupal\cer\EntityCode
public function hasCorrespondingFields(FieldableEntityInterface $entity);