function RulesState::isSavable

Returns whether the given wrapper is saveable.

1 call to RulesState::isSavable()
RulesState::saveChanges in includes/rules.state.inc
Apply permanent changes provided the wrapper's data type is saveable.

File

includes/rules.state.inc, line 127

Class

RulesState
The rules evaluation state.

Code

public function isSavable($wrapper) {
    return $wrapper instanceof EntityDrupalWrapper && entity_type_supports($wrapper->type(), 'save') || $wrapper instanceof RulesDataWrapperSavableInterface;
}