型・APIリファレンス
    Preparing search index...

    Function useEnvironmentContext

    • 環境コンテキスト情報が参照可能なロジックを生成します。

      Returns {
          getCurrentLocale: () => string;
          getCurrentUserName: () => string;
          getServletContextName: () => string;
          getStaticContentPath: () => string;
          getTenantContextPath: () => string;
      }

      • getCurrentLocale: () => string

        現在のロケールを返却します。

      • getCurrentUserName: () => string

        現在ログイン中のユーザー名を返却します。

      • getServletContextName: () => string

        サーブレットコンテキスト名を返却します。

      • getStaticContentPath: () => string

        静的コンテンツのパスを返却します。

      • getTenantContextPath: () => string

        テナントコンテキストパスを返却します。

      const { getTenantContextPath } = Mdc.useEnvironmentContext();
      const tenantContextPath = getTenantContextPath();