You are here

interface EntityReferenceHelperInterface in Entity Share 8.3

Entity reference helper interface methods.

Hierarchy

Expanded class hierarchy of EntityReferenceHelperInterface

All classes that implement EntityReferenceHelperInterface

1 file declares its use of EntityReferenceHelperInterface
EntityReference.php in modules/entity_share_client/src/Plugin/EntityShareClient/Processor/EntityReference.php

File

modules/entity_share_client/src/Service/EntityReferenceHelperInterface.php, line 12

Namespace

Drupal\entity_share_client\Service
View source
interface EntityReferenceHelperInterface {

  /**
   * Denotes the relationship which is not entity reference.
   */
  const RELATIONSHIP_NOT_ENTITY_REFERENCE = -1;

  /**
   * Denotes the entity reference relationship which is not handleable.
   */
  const RELATIONSHIP_NOT_HANDLEABLE = 0;

  /**
   * Denotes the entity reference relationship which is handleable.
   */
  const RELATIONSHIP_HANDLEABLE = 1;

  /**
   * Check if a relationship is handleable.
   *
   * Filter on fields not targeting config entities or users.
   *
   * @param \Drupal\Core\Field\FieldItemListInterface $field
   *   The field item list.
   *
   * @return int
   *   One of class constants which describe this relationship field.
   */
  public function relationshipHandleable(FieldItemListInterface $field);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityReferenceHelperInterface::relationshipHandleable public function Check if a relationship is handleable. 1
EntityReferenceHelperInterface::RELATIONSHIP_HANDLEABLE constant Denotes the entity reference relationship which is handleable.
EntityReferenceHelperInterface::RELATIONSHIP_NOT_ENTITY_REFERENCE constant Denotes the relationship which is not entity reference.
EntityReferenceHelperInterface::RELATIONSHIP_NOT_HANDLEABLE constant Denotes the entity reference relationship which is not handleable.