private function update(string
$pathToCustomEntityFile, string
$extensionEntityType, string
$extensionId): ?CustomEntityXmlSchema
{ $customEntityXmlSchema =
$this->
getXmlSchema($pathToCustomEntityFile);
if ($customEntityXmlSchema === null
) { return null;
} $customEntityXmlSchema =
$this->customEntityEnrichmentService->
enrich( $customEntityXmlSchema,
$this->
getAdminUiXmlSchema($pathToCustomEntityFile),
);
$this->customEntityPersister->
update($customEntityXmlSchema->
toStorage(),
$extensionEntityType,
$extensionId);
$this->customEntitySchemaUpdater->
update();
return $customEntityXmlSchema;
} private function getXmlSchema(string
$pathToCustomEntityFile): ?CustomEntityXmlSchema
{ $filePath = Path::
join($pathToCustomEntityFile, CustomEntityXmlSchema::FILENAME
);