getBehaviorId
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
getBehaviorId(
cls):BehaviorId
Defined in: packages/pipeline/src/helpers/behavior-id.ts:50
Returns the identity used to deduplicate a behavior and resolve its options.
By default the constructor reference is the identity. A behavior that must be recognized across multiple loaded copies of the same package can opt into a stable string identity through PIPELINE_BEHAVIOR_ID.
Parameters
Section titled “Parameters”Constructor<IPipelineBehavior<unknown, unknown>>
Behavior class whose identity should be resolved.
Returns
Section titled “Returns”The constructor reference or the behavior’s explicit stable id.
Example
Section titled “Example”Stable identity across duplicated package copies
export class LoggingBehavior implements IPipelineBehavior { static readonly [PIPELINE_BEHAVIOR_ID] = 'my-package:LoggingBehavior';}