SilverStripe\Versioned\ChangeSet::publish
Publish this changeset, then closes it.
User code should call prior to invoking this method.
Signature
public function publish([boolean
$isSynced = false] )
Parameters
$isSynced
— boolean- Whatever to assume the ChangeSet is synced. Only set this to true if the ChangetSet
just got built. Defaults to false.
Returns
- bool
- True if successful
Errors/Exceptions
-
BadMethodCallException
- ChangeSet has already been published or reverted.
-
ValidationException
- ChangeSet is not synced an can not be published.