public function ExportEntity::removeEntity in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::removeEntity()
- 3.x src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::removeEntity()
Remove entity from the export entity list.
File
- src/
Entity/ ExportEntity.php, line 249
Class
- ExportEntity
- Defines the Export entity entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function removeEntity(Entity $entity) {
\Drupal::database()
->delete(self::TABLE_ITEMS)
->condition(self::FIELD_EXPORT_ID, $this
->id())
->condition(self::FIELD_ENTITY_ID, $entity
->id())
->condition(self::FIELD_ENTITY_TYPE, $entity
->getEntityTypeId())
->execute();
}