public function fireViewEvent($event, $params = [])
    {
        // Add the local object to the first parameter always
        array_unshift($params, $this);

        if ($result = Event::fire($event, $params)) {
            return implode(PHP_EOL.PHP_EOL, (array) $result);
        }

        return '';
    }
public function fireViewEvent($event, $params = [])
    {
        // Add the local object to the first parameter always
        array_unshift($params, $this);

        if ($result = Event::fire($event, $params)) {
            return implode(PHP_EOL.PHP_EOL, (array) $result);
        }

        return '';
    }
public function fireViewEvent ( $ event , $ params = [ ] ) { // Add the local object to the first parameter always array_unshift ( $ params , $ this ) ; if ( $ result = Event :: fire ( $ event , $ params ) ) { return implode ( PHP_EOL . PHP_EOL , ( array ) $ result ) ; } return '' ; }
Special event function used for extending within view files,
allowing HTML to be injected multiple times.

For example:

<?= $this->fireViewEvent('backend.auth.extendSigninView') ?>

@param string $event Event name
@param array $params Event parameters
@return string
Special event function used for extending within view files allowing HTML to be injected multiple times .