public function getIdentifier($namespace)
    {
        $namespace = Str::normalizeClassName($namespace);
        if (strpos($namespace, '\\') === null) {
            return $namespace;
        }

        $parts = explode('\\', $namespace);
        $slice = array_slice($parts, 1, 2);
        $namespace = implode('.', $slice);

        return $namespace;
    }
public function getIdentifier($namespace)
    {
        $namespace = Str::normalizeClassName($namespace);
        if (strpos($namespace, '\\') === null) {
            return $namespace;
        }

        $parts = explode('\\', $namespace);
        $slice = array_slice($parts, 1, 2);
        $namespace = implode('.', $slice);

        return $namespace;
    }
public function getIdentifier ( $ namespace ) { $ namespace = Str :: normalizeClassName ( $ namespace ) ; if ( strpos ( $ namespace , '\\' ) === null ) { return $ namespace ; } $ parts = explode ( '\\' , $ namespace ) ; $ slice = array_slice ( $ parts , 1 , 2 ) ; $ namespace = implode ( '.' , $ slice ) ; return $ namespace ; }
Resolves a plugin identifier from a plugin class name or object.
@param mixed Plugin class name or object
@return string Identifier in format of Vendor.Plugin
Resolves a plugin identifier from a plugin class name or object .