public function getContentTypeIcon(string $identifier): string
    {
        $icon = $this->resolveIcon($identifier);

        $fragment = null;
        if (strpos($icon, '#') !== false) {
            list($icon, $fragment) = explode('#', $icon);
        }

        return $this->packages->getUrl($icon) . ($fragment ? '#' . $fragment : '');
    }
public function getContentTypeIcon(string $identifier): string
    {
        $icon = $this->resolveIcon($identifier);

        $fragment = null;
        if (strpos($icon, '#') !== false) {
            list($icon, $fragment) = explode('#', $icon);
        }

        return $this->packages->getUrl($icon) . ($fragment ? '#' . $fragment : '');
    }
public function getContentTypeIcon ( string $ identifier ) : string { $ icon = $ this -> resolveIcon ( $ identifier ) ; $ fragment = null ; if ( strpos ( $ icon , '#' ) !== false ) { list ( $ icon , $ fragment ) = explode ( '#' , $ icon ) ; } return $ this -> packages -> getUrl ( $ icon ) . ( $ fragment ? '#' . $ fragment : '' ) ; }
Returns path to content type icon.

Path is resolved based on configuration (ezpublish.system.<SCOPE>.content_type.<IDENTIFIER>). If there isn't
corresponding entry for given content type, then path to default icon will be returned.

@param string $identifier

@return string
Returns path to content type icon .