if($entity->hasLinkTemplate('edit-form')&&$group_relationship->getGroup()->hasPermission("update own group_content_menu:$entity_type_id entity",$account)){
if($entity->hasLinkTemplate('edit-form')&&$group_relationship->getGroup()->hasPermission('manage group_content_menu menu items',$account)){
$operations['edit']=[
'title'=>$this->t('Edit'),
'weight'=>10,
'url'=>$entity->toUrl('edit-form'),
];
}
if($entity->hasLinkTemplate('delete-form')&&$group_relationship->getGroup()->hasPermission("delete own group_content_menu:$entity_type_id entity",$account)){