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());
} public function updatedCustomerGroup(EntityWrittenEvent
$event): void
{ $ids =
[];
foreach ($event->
getWriteResults() as $writeResult) { if ($writeResult->
hasPayload('registrationTitle'
)) { /** @var array<string, string> $pk */
$pk =
$writeResult->
getPrimaryKey();
$ids[] =
$pk['customerGroupId'
];
}