#52469ViewHelper not usable with own Models
Description
\TYPO3\CMS\Beuser\ViewHelpers\SpriteIconForRecordViewHelper uses following code if the parsed class is a BackendUser model.
if ($table = 'be_users' && get_class($object) = ‘TYPO3\\CMS\\Beuser\\Domain\\Model\\BackendUser’) {
This should use the instanceof lookup to make it possible to use it out of the box.
if ($table === ‘be_users’ && $object instanceof \TYPO3\CMS\Beuser\Domain\Model\BackendUser) {