1 entity.class.inc public EntityInterface::save()

Saves an entity permanently.

Return value

Either SAVED_NEW or SAVED_UPDATED, depending on the operation performed.

Throws

EntityStorageException In case of failures an exception is thrown.

File

core/modules/entity/entity.class.inc, line 85
Provides an interface and a base class for entities.

Class

EntityInterface
Defines a common interface for all entity objects.

Code

public function save();