PHPackages                             liventin/base.module.result.modifier.injection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. liventin/base.module.result.modifier.injection

ActiveBitrix-d7-module

liventin/base.module.result.modifier.injection
==============================================

Service for inject events before and after result modifier in bitrix components

v1.0.0(9mo ago)030↓100%MITPHPPHP &gt;=8.1

Since Aug 8Pushed 9mo agoCompare

[ Source](https://github.com/Liventin/base.module.result.modifier.injection)[ Packagist](https://packagist.org/packages/liventin/base.module.result.modifier.injection)[ RSS](/packages/liventin-basemoduleresultmodifierinjection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

base.module.result.modifier.injection
=====================================

[](#basemoduleresultmodifierinjection)

[Bitrix Base Module](https://github.com/Liventin/base.module.result.modifier.injection)[Bitrix Handlers Service For Base Events](https://github.com/Liventin/base.module.handlers)install | update

```
"require": {
    "liventin/base.module.result.modifier.injection": "@stable"
}

```

redirect (optional)

```
"extra": {
  "service-redirect": {
    "liventin/base.module.result.modifier.injection": "base.module",
  }
}

```

example

```
// in file /local/templates/.default/components/bitrix/crm.kanban/.default/result_modifier.php

defined('B_PROLOG_INCLUDED') || die;

/** Bitrix
 * @var array $arResult
 * @global CMain $APPLICATION
 * @var CBitrixComponentTemplate $this
 */

use Base\Module\Service\Container;
use Base\Module\Service\ResultModifier\ComponentEventSender;

try {
    Loader::requireModule('base.module');

    /** @var ComponentEventSender $redirect */
    $redirect = Container::get(ComponentEventSender::SERVICE_CODE);
    $redirect->redirectToNextTemplateWithEvents($this, $arParams, $arResult);

} catch (Throwable $e) {
    ShowError($e->getMessage());
}
```

EventHandler

```
