return [ 'customer_group_translation.written' => 'updatedCustomerGroup',
'customer_group_registration_sales_channels.written' => 'newSalesChannelAddedToCustomerGroup',
'customer_group_translation.deleted' => 'deleteCustomerGroup',
];
} public function newSalesChannelAddedToCustomerGroup(EntityWrittenEvent
$event): void
{ $ids =
[];
foreach ($event->
getWriteResults() as $writeResult) { /** @var array<string, string> $pk */
$pk =
$writeResult->
getPrimaryKey();
$ids[] =
$pk['customerGroupId'
];
} if (\
count($ids) === 0
) { return;
} $this->
createUrls($ids,
$event->
getContext());
}