Xpressengine\Plugin\AbstractPlugin::asset PHP Method

asset() public static method

해당 플러그인의 asset 파일 주소를 반환한다.
public static asset ( string $path, string $secure = null ) : string
$path string path가 주어질 경우 주어진 파일의 URL을 반환한다. path는 해당 플러그인 디렉토리 내에서의 상대 경로이어야 한다.
$secure string https 여부
return string
    public static function asset($path, $secure = null)
    {
        $path = 'plugins/' . static::getId() . '/' . trim($path, '/');
        return asset($path, $secure);
    }