[F] getSegment
function getSegment(program, entity): string | undefined;Returns the segment stored on this type, or undefined if none was set.
An empty string explicitly omits the segment from automatic routes; no resource key lookup is performed.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
program | Program |
entity | Type |
Returns
Section titled “Returns”string | undefined