li3_behaviors\data\model\Behavior::_methods()
Allows for dyamically adding instance methods to the model. The methods to be added must be returned as an array, where the key is the name of the concrete method on the model and the value an anonymous function.
- Overwrite to add your own methods. -
Parameters
-
string
$model
Class name of the model.
-
object
$behavior
Instance of the behavior.
Returns
arrayMethods to be added to the model instance.
Source
protected static function _methods($model, Behavior $behavior) {
return [];
}