public static function getType()
    {
        $clsInfo = explode('\\', get_called_class());
        $namespaceParts = array_slice($clsInfo, 0, -1);
        // convention: AdminType classes are placed into the "<bundle>\Element\Type" namespace
        $namespaceParts[] = "Type";
        $bareClassName = implode('', array_slice($clsInfo, -1));
        // convention: AdminType class name is the same as the element class name suffixed with AdminType
        return implode('\\', $namespaceParts) . '\\' . $bareClassName . 'AdminType';
    }
public static function getType()
    {
        $clsInfo = explode('\\', get_called_class());
        $namespaceParts = array_slice($clsInfo, 0, -1);
        // convention: AdminType classes are placed into the "<bundle>\Element\Type" namespace
        $namespaceParts[] = "Type";
        $bareClassName = implode('', array_slice($clsInfo, -1));
        // convention: AdminType class name is the same as the element class name suffixed with AdminType
        return implode('\\', $namespaceParts) . '\\' . $bareClassName . 'AdminType';
    }
public static function getType ( ) { $ clsInfo = explode ( '\\' , get_called_class ( ) ) ; $ namespaceParts = array_slice ( $ clsInfo , 0 , - 1 ) ; // convention: AdminType classes are placed into the "<bundle>\Element\Type" namespace $ namespaceParts [ ] = "Type" ; $ bareClassName = implode ( '' , array_slice ( $ clsInfo , - 1 ) ) ; // convention: AdminType class name is the same as the element class name suffixed with AdminType return implode ( '\\' , $ namespaceParts ) . '\\' . $ bareClassName . 'AdminType' ; }
Auto-calculation of AdminType class from Element class name.
Bare-bones reimplementation of deprecated upstream method.

@return string fully qualified class name
Auto - calculation of AdminType class from Element class name . Bare - bones reimplementation of deprecated upstream method .