interface EntityReferenceHelperInterface in Entity Share 8.3
Entity reference helper interface methods.
Hierarchy
- interface \Drupal\entity_share_client\Service\EntityReferenceHelperInterface
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\ServiceView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityReferenceHelperInterface:: |
public | function | Check if a relationship is handleable. | 1 |
EntityReferenceHelperInterface:: |
constant | Denotes the entity reference relationship which is handleable. | ||
EntityReferenceHelperInterface:: |
constant | Denotes the relationship which is not entity reference. | ||
EntityReferenceHelperInterface:: |
constant | Denotes the entity reference relationship which is not handleable. |