Problem with getting information from schema. Custom provider

Maybe yes, but as I know this is deprecated function…