src/Admin/AbstractAdmin.php
protected function getSubClass($name)
    {
        if ($this->hasSubClass($name)) {
            return $this->subClasses[$name];
        }

        throw new \RuntimeException(sprintf(
            'Unable to find the subclass `%s` for admin `%s`',
            $name,
            \get_class($this)
        ));
    }
protected function getSubClass($name)
    {
        if ($this->hasSubClass($name)) {
            return $this->subClasses[$name];
        }

        throw new \RuntimeException(sprintf(
            'Unable to find the subclass `%s` for admin `%s`',
            $name,
            \get_class($this)
        ));
    }
protected function getSubClass ( $ name ) { if ( $ this -> hasSubClass ( $ name ) ) { return $ this -> subClasses [ $ name ] ; } throw new \ RuntimeException ( sprintf ( 'Unable to find the subclass `%s` for admin `%s`' , $ name , \ get_class ( $ this ) ) ) ; }
Gets the subclass corresponding to the given name.

@param string $name The name of the sub class

@return string the subclass
Gets the subclass corresponding to the given name .