Neos\Flow\ObjectManagement\ObjectManager::getCaseSensitiveObjectName PHP Method

getCaseSensitiveObjectName() public method

In general, the case sensitive variant is used everywhere in Flow, however there might be special situations in which the case sensitive name is not available. This method helps you in these rare cases.
public getCaseSensitiveObjectName ( string $caseInsensitiveObjectName ) : mixed
$caseInsensitiveObjectName string The object name in lower-, upper- or mixed case
return mixed Either the mixed case object name or FALSE if no object of that name was found.
    public function getCaseSensitiveObjectName($caseInsensitiveObjectName)
    {
        $lowerCasedObjectName = ltrim(strtolower($caseInsensitiveObjectName), '\\');
        if (isset($this->cachedLowerCasedObjectNames[$lowerCasedObjectName])) {
            return $this->cachedLowerCasedObjectNames[$lowerCasedObjectName];
        }
        foreach ($this->objects as $objectName => $information) {
            if (isset($information['l']) && $information['l'] === $lowerCasedObjectName) {
                $this->cachedLowerCasedObjectNames[$lowerCasedObjectName] = $objectName;
                return $objectName;
            }
        }
        return false;
    }