getValue() protected method
Returns the value for the current attributes.
This method is called by evaluateAttributes(). Its return value will be assigned to the attributes corresponding to the triggering event.
In case, when the $value property is null
, the value of Yii::$app->user->id
will be used as the value.
protected mixed getValue ( $event ) | ||
---|---|---|
$event | yii\base\Event |
The event that triggers the current attribute updating. |
return | mixed |
The attribute value |
Please login to continue.