1 entity.class.inc | public Entity::delete() |
Implements EntityInterface::delete().
Overrides EntityInterface::delete
File
- core/
modules/ entity/ entity.class.inc, line 305 - Provides an interface and a base class for entities.
Class
- Entity
- Defines a base entity class.
Code
public function delete() {
if (!$this->isNew()) {
entity_get_controller($this->entityType())->delete(array($this->id()));
}
}