You are here

public function Entity::save in Entity API 7

Permanently saves the entity.

Overrides EntityInterface::save

See also

entity_save()

File

includes/entity.inc, line 333
Provides a base class for entities.

Class

Entity
A common class for entities.

Code

public function save() {
  return entity_get_controller($this->entityType)
    ->save($this);
}