} public function enrich( CustomEntityXmlSchema
$customEntityXmlSchema,
?AdminUiXmlSchema
$adminUiXmlSchema ): CustomEntityXmlSchema
{ // @todo NEXT-22697 - Re-implement, when re-enabling cms-aware
// $customEntityXmlSchema = $this->enrichCmsAware($customEntityXmlSchema);
if ($adminUiXmlSchema !== null
) { $customEntityXmlSchema =
$this->
enrichAdminUi($customEntityXmlSchema,
$adminUiXmlSchema);
} return $customEntityXmlSchema;
} private function enrichCmsAware(CustomEntityXmlSchema
$customEntityXmlSchema): CustomEntityXmlSchema
{ foreach ($customEntityXmlSchema->
getEntities()?->
getEntities() ??
[] as $entity) { if ($entity->
isCmsAware() !== true
) { continue;
}