public function ExportEntity::removeEntity in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::removeEntity()
- 8 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::removeEntity()
Remove entity from the export entity list.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
File
- src/
Entity/ ExportEntity.php, line 257
Class
- ExportEntity
- Defines the Export entity entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function removeEntity(EntityInterface $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();
}