UserFrosting API

ConfirmableTrait

Confirmable Trait. Include method used to confirm action.

Tags
author

Louis Charette

Table of Contents

confirmToProceed() Confirm before proceeding with the action. bool
getDefaultConfirmCallback() Get the default confirmation callback. \Closure

Methods

confirmToProceed()

Confirm before proceeding with the action.

public confirmToProceed( [ $force : bool = false ] [, $warning : string = 'Application In Production Mode!' ] [, $callback : Closure|bool|null = null ] ) : bool

This method only asks for confirmation in production.

Parameters
$force : bool = false
$warning : string = 'Application In Production Mode!'
$callback : Closure|bool|null = null
Return values
bool

getDefaultConfirmCallback()

Get the default confirmation callback.

protected getDefaultConfirmCallback( ) : Closure
Return values
Closure

Search results