private function getCustomFields(DataService $annotation): array
    {
        $fields = $this->customFieldManager->getCustomFields();
        $customFields = [];
        if (isset($fields[$annotation->getService()][$annotation->getObjectType()])) {
            $customFields = $fields[$annotation->getService()][$annotation->getObjectType()];
        }

        return $customFields;
    }
private function getCustomFields(DataService $annotation): array
    {
        $fields = $this->customFieldManager->getCustomFields();
        $customFields = [];
        if (isset($fields[$annotation->getService()][$annotation->getObjectType()])) {
            $customFields = $fields[$annotation->getService()][$annotation->getObjectType()];
        }

        return $customFields;
    }
private function getCustomFields ( DataService $ annotation ) : array { $ fields = $ this -> customFieldManager -> getCustomFields ( ) ; $ customFields = [ ] ; if ( isset ( $ fields [ $ annotation -> getService ( ) ] [ $ annotation -> getObjectType ( ) ] ) ) { $ customFields = $ fields [ $ annotation -> getService ( ) ] [ $ annotation -> getObjectType ( ) ] ; } return $ customFields ; }
Return the array of custom fields for an annotation.

@param DataService $annotation The Data Service annotation being discovered.

@return DiscoveredCustomField[] An array of custom field definitions.
Return the array of custom fields for an annotation .