if (\
count($referencedFields) !== \
count(\
array_unique($referencedFields))) { throw CustomEntityConfigurationException::
duplicateReferences( AdminUiXmlSchema::FILENAME,
$customEntityName,
$xmlElement,
$this->
getDuplicates($referencedFields) );
} $invalidFields =
array_diff($referencedFields,
$entityFields);
if (!
empty($invalidFields)) { throw CustomEntityConfigurationException::
invalidReferences( AdminUiXmlSchema::FILENAME,
$customEntityName,
$xmlElement,
$invalidFields );
} } /**
* @param string[] $entries
*
* @return string[]
*/