Skip to main content

contextOf

The canonical context a sentinel token belongs to, or null if it is not a member of any canonical context. Deprecated tokens return null here (they are not a canonical context) — use matchDeprecation to detect those.

Signature

import { contextOf } from '@conduction/nextcloud-vue'

contextOf(token)
ArgumentTypeDescription
tokenstringThe @-prefixed token.

Return value

Returns a member of the canonical contexts (filter, config, object, workspace, route, declarative) or null.

See also