Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | public static function handle(RegisterElementActionsEvent $event) |
||
26 | { |
||
27 | $event->actions = [ |
||
28 | [ |
||
29 | 'type' => DissociateUsersFromOrganizationAction::class, |
||
30 | 'organization' => Craft::$app->getRequest()->getParam('organization') |
||
31 | ], |
||
32 | [ |
||
33 | 'type' => EditUserAssociation::class, |
||
34 | 'organization' => Craft::$app->getRequest()->getParam('organization') |
||
35 | ], |
||
36 | ]; |
||
37 | } |
||
38 | } |
||
39 |