Returns base entity name

@return string
557475
public function getName()
    {
        $fqdnClassName = get_class($this);
        $className = substr($fqdnClassName, strrpos($fqdnClassName, '\\') + 1);
        return str_replace("Service", "", $className);
    }
1115541
public function getBaseType()
    {
        if ($this->base_type)
            return $this->base_type;
        if ($this->getParent())
            return $this->getParent()->getBaseType();
        return null;
    }
165576
private static function getBaseNamespace()
    {
        // try to determine the namespace of the
        $composerFile = PSX_PATH_SRC . '/../composer.json';
        $composer = \json_decode(\file_get_contents($composerFile), true);

        if (isset($composer['autoload'])) {
            $paths = $composer['autoload']['psr-4'] ?? [];
            $base  = trim(key($paths), '\\');

            if (!empty($base)) {
                return $base;
            }
        }

        throw new \RuntimeException('Could not determine the base namespace');
    }
28635
protected function getEntityNamePlural()
    {
        $name = $this->getEntityNameSingular();
        $nameParts = Text::camelCaseToSeparator($name, '#');
        $nameParts = explode('#', $nameParts);
        $lastPart = array_pop($nameParts);
        $lastPart = ucfirst(Text::plural(strtolower($lastPart)));
        array_push($nameParts, $lastPart);
        return lcfirst(implode('', $nameParts));
    }
1201002
private function getBaseUrl() {
        $uri = $this->getRequest()->getUri();
        return sprintf('%s://%s', $uri->getScheme(), $uri->getHost());
    }
626154
public function getName()
    {
        if (null === $this->name) {
            $this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
        }

        return $this->name;
    }
115603
public function getBaseUri()
    {
        return sprintf('%s%s'
            , $this->params['endpoint']
            , ! empty($this->id) ? '/' . $this->id : null
        );
    }
566168
public function filename()
    {
        $processor = Hash::get($this->settings, 'nameCallback', null);
        if (is_callable($processor)) {
            $numberOfParameters = (new \ReflectionFunction($processor))->getNumberOfParameters();
            if ($numberOfParameters == 2) {
                return $processor($this->data, $this->settings);
            }

            return $processor($this->table, $this->entity, $this->data, $this->field, $this->settings);
        }

        return $this->data['name'];
    }
340133
public String getBaseName() {
        String n = getName();
        int idx = n.lastIndexOf('.');
        if (idx<0)  return n;
        return n.substring(0,idx);
    }
1325726
protected function _getAppBase()
    {
        $baseUrl = Configure::read('App.base');
        if (!$baseUrl) {
            $request = Router::getRequest(true);
            if (!$request) {
                $baseUrl = '';
            } else {
                $baseUrl = $request->base;
            }
        }
        return $baseUrl . '/';
    }
620866
public function getName()
	{
	    if (!isset($this->name)) {
	        $this->name = $this->isApp() ? '' : trim(str_replace($this->basePath, '', $module['basePath']), '\\/');
	    }
	    
	    return $this->name;
	}
387460
public function getBasePath() : string
    {
        $baseUri = $this->getBase();
        $path = ltrim($this->getPath(), "/");

        $absoluteUri = $baseUri . (($path === "") ? "" : "/" . $path);

        return $absoluteUri;
    }
708755
protected function getVersionNamespace()
    {
        $version = $this->api()->getVersion();
        $supported = $this->getSupportedVersionNamespace();

        if (isset($supported[$version])) {
            return $supported[$version];
        }

        return 'Base';
    }
2495
protected function getBaseEntityKey(string $entityKey): string
    {
        if(($pos = strpos($entityKey, ':')) !== false) {
            return substr($entityKey, 0, $pos);
        }

        return $entityKey;
    }
873796
public function getFieldNameByBaseType($base_type)
    {
        $this->getTableInfo();
        $field = null;
        if (isset($this['fields'])) {
            if (isset($this['fields'][$base_type])) {
                $field = $base_type;
            }
            foreach ($this['fields'] as $v) {
                if (isset($v['base_type']) && $v['base_type'] == $base_type) {
                    $field = $v['field_name'];
                    break;
                }
            }
        }
        
        return $field;
    }
802880
public function getBaseRouteName()
    {
        if (!$this->baseRouteName) {
            if ('sonata.product.admin.product.variation' === $this->getCode() && !$this->isChild()) { // variation
                $this->baseRouteName = 'admin_sonata_product_variation';
            } elseif ('sonata.product.admin.product.variation' === $this->getCode() && $this->isChild()) { // variation
                $this->baseRouteName = sprintf('%s_%s',
                    $this->getParent()->getBaseRouteName(),
                    $this->urlize('variation')
                );
            } else {
                throw new \RuntimeException('Invalid method call due to invalid state');
            }
        }

        return $this->baseRouteName;
    }
457817
public function getEntity(): ?string
    {
        $reflection = new ReflectionMethod($this, 'transform');
        if (! $reflection->getNumberOfParameters()) {
            return null;
        }

        $parameter = $reflection->getParameters()[0];
        if (! ($type = $parameter->getType())) {
            return null;
        }

        return $type->getName();
    }