blockly > icons > Icon > getSourceBlock

icons.Icon.getSourceBlock() method

Returns the block that this icon is attached to.

Signature:

getSourceBlock(): Block;

Returns:

Block

The block this icon is attached to.