Skip to main content

Home > blockly > ConnectionNavigationPolicy > getParentConnection

ConnectionNavigationPolicy.getParentConnection() method

Gets the parent connection on a block. This is either an output connection, previous connection or undefined. If both connections exist return the one that is actually connected to another block.

Signature:

protected getParentConnection(block: BlockSvg): RenderedConnection;

Parameters

ParameterTypeDescription
blockBlockSvgThe block to find the parent connection on.

Returns:

RenderedConnection

The connection connecting to the parent of the block.