interface EntityNeedsSaveInterface in Entity Reference Revisions 8
Allows an entity to define whether it needs to be saved.
Hierarchy
- interface \Drupal\entity_reference_revisions\EntityNeedsSaveInterface
Expanded class hierarchy of EntityNeedsSaveInterface
All classes that implement EntityNeedsSaveInterface
2 files declare their use of EntityNeedsSaveInterface
- EntityReferenceRevisionsItem.php in src/
Plugin/ Field/ FieldType/ EntityReferenceRevisionsItem.php - EntityTestCompositeRelationship.php in tests/
modules/ entity_composite_relationship_test/ src/ Entity/ EntityTestCompositeRelationship.php
File
- src/
EntityNeedsSaveInterface.php, line 8
Namespace
Drupal\entity_reference_revisionsView source
interface EntityNeedsSaveInterface {
/**
* Checks whether the entity needs to be saved.
*
* @return bool
* TRUE if the entity needs to be saved.
*/
public function needsSave();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityNeedsSaveInterface:: |
public | function | Checks whether the entity needs to be saved. |