You are here

public function GdprField::isOwner in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::isOwner()
  2. 8 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::isOwner()

Indicates that this is a reverse relationship.

Indicates that the current entity is the owner of the relationship, and traversal should take place from this side, rather than from the root entity.

Return value

bool True if owner, otherwise false.

1 call to GdprField::isOwner()
GdprField::includeRelatedEntities in modules/gdpr_fields/src/Entity/GdprField.php
Whether to recurse to entities included in this property.

File

modules/gdpr_fields/src/Entity/GdprField.php, line 202

Class

GdprField
Metadata for a GDPR field.

Namespace

Drupal\gdpr_fields\Entity

Code

public function isOwner() {
  return $this->relationship === self::RELATIONSHIP_OWNER;
}