framework/base/Widget.php
public function afterRun($result)
    {
        $event = new WidgetEvent();
        $event->result = $result;
        $this->trigger(self::EVENT_AFTER_RUN, $event);
        return $event->result;
    }
public function afterRun($result)
    {
        $event = new WidgetEvent();
        $event->result = $result;
        $this->trigger(self::EVENT_AFTER_RUN, $event);
        return $event->result;
    }
public function afterRun ( $ result ) { $ event = new WidgetEvent ( ) ; $ event -> result = $ result ; $ this -> trigger ( self :: EVENT_AFTER_RUN , $ event ) ; return $ event -> result ; }
This method is invoked right after a widget is executed.

The method will trigger the [[EVENT_AFTER_RUN]] event. The return value of the method
will be used as the widget return value.

If you override this method, your code should look like the following:

```php
public function afterRun($result)
{
$result = parent::afterRun($result);
// your custom code here
return $result;
}
```

@param mixed $result the widget return result.
@return mixed the processed widget result.
@since 2.0.11
This method is invoked right after a widget is executed .