You are here

interface EntityNeedsSaveInterface in Entity Reference Revisions 8

Allows an entity to define whether it needs to be saved.

Hierarchy

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_revisions
View 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

Namesort descending Modifiers Type Description Overrides
EntityNeedsSaveInterface::needsSave public function Checks whether the entity needs to be saved.