Commit 5e396169 authored by Tobias Munk's avatar Tobias Munk

added audit trail behavior

parent 47563781
......@@ -11,6 +11,16 @@ use yii\helpers\ArrayHelper;
*/
class WidgetContent extends BaseWidget
{
public function behaviors()
{
return ArrayHelper::merge(
parent::behaviors(),
[
'bedezign\yii2\audit\AuditTrailBehavior'
]
);
}
/**
* @inheritdoc
* @return array
......
......@@ -13,6 +13,16 @@ use yii\helpers\Json;
*/
class WidgetTemplate extends BaseWidgetTemplate
{
public function behaviors()
{
return ArrayHelper::merge(
parent::behaviors(),
[
'bedezign\yii2\audit\AuditTrailBehavior'
]
);
}
public function rules()
{
return ArrayHelper::merge(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment