If the input matches an alias, return the aliased shell name

@param string $shell Optionally the name of a plugin or alias
@return string Shell name with plugin prefix
191972
protected function _handleAlias($shell)
    {
        $aliased = static::alias($shell);
        if ($aliased) {
            $shell = $aliased;
        }

        $class = array_map('Cake\Utility\Inflector::camelize', explode('.', $shell));

        return implode('.', $class);
    }
610910
public function namePrefix($value = null)
    {
        if ($value !== null) {
            $this->_namePrefix = $value;
        }

        return $this->_namePrefix;
    }
950406
public function get_namespace($name = null)
    {
        $ns = $this->namespace;

        if ($name) {
            // an alias for BC
            if ($name == 'prefix') {
                $name = 'prefix_in';
            }

            return isset($ns[$name]) ? $ns[$name] : null;
        }

        unset($ns['prefix_in'], $ns['prefix_out']);

        return $ns;
    }
845494
protected function reduceAlias($name)
    {
        $aliases = $this->dumper->getAliases();

        if (isset($aliases[$name])) {
            return $this->reduceAlias($aliases[$name]);
        }

        return $name;
    }
517303
function aliasGetName($nameOrAlias) {
    if ('\\' === $nameOrAlias[0]) {
      return substr($nameOrAlias, 1);
    }
    elseif (array_key_exists($nameOrAlias, $this->namesByAlias)) {
      return $this->namesByAlias[$nameOrAlias];
    }
    elseif (NULL !== $this->namespaceName) {
      return $this->namespaceName . '\\' . $nameOrAlias;
    }
    else {
      return $nameOrAlias;
    }
  }
1251608
public function get(string $alias = null)
    {
        if (is_null($alias)) {
            return $this->aliases;
        }

        return $this->has($alias) ? $this->aliases[$alias] : false;
    }
998977
public function alias($alias = null)
    {
        if ($alias !== null) {
            $this->alias = $alias;
        }

        return $this->alias;
    }
14493
protected function getAliasAndSuffix($alias = null)
    {
        $suffix = count($this->getParameters());
        $alias = $this->getFirstAlias($alias);

        return array($alias, $suffix);
    }
709577
public function findByAlias($alias)
    {
        foreach ($this->all() as $module) {
            if ($module->getAlias() === $alias) {
                return $module;
            }
        }

        return;
    }
267975
public function getAlias(): ?string
    {
        return isset($this->statements['aliases']) === true ? array_values($this->statements['aliases'])[0] : null;
    }
945802
public function getClassNameForAlias($aliasOrClassName)
    {
        $lookUpClassName = strtolower($aliasOrClassName);

        return isset($this->aliasMap['aliasToClassNameMapping'][$lookUpClassName]) ? $this->aliasMap['aliasToClassNameMapping'][$lookUpClassName] : $aliasOrClassName;
    }
309550
function getAlias( $alias ) {

        return isset( $this->aliases[ $alias ] ) ? $this->aliases[ $alias ] : $alias;

    }
817886
protected function getConfigFilename($alias)
    {
        $files = $this->getFilesByAlias($alias);

        return isset($files[1]) ? $files[1] : null;
    }
645688
public function getTableByAlias($alias)
    {
        return $this->hasTableAlias($alias) ? $this->getExpression($this->getHash($alias)) : null;
    }
1218952
public function getAlias() : ?string 
    {
        if ( ! $this->hasAlias()) {
            $this->setAlias($this->getDefaultAlias());
        }
        return $this->alias;
    }
1169954
protected function get_namefor($name = '') {
        $name = $name !== '' ? '_' . $name : '';
        return $this->subplugintype . '_' . $this->subpluginname . $name;
    }
581817
protected function component_name(string $component): string {

        if ($component === 'core' || strpos($component, 'core_')) {
            return get_string('componentcore', 'tool_analytics');

        } else {
            return get_string('pluginname', $component);
        }
    }