public static function createBlockId(BlockInterface $block)
    {
        $id = '_'.$block->getName();

        if ($block->getParent() && $block->getOption('chained_block')) {
            $id = static::createBlockId($block->getParent()).$id;
        }

        return ltrim($id, '_0123456789');
    }
public static function createBlockId(BlockInterface $block)
    {
        $id = '_'.$block->getName();

        if ($block->getParent() && $block->getOption('chained_block')) {
            $id = static::createBlockId($block->getParent()).$id;
        }

        return ltrim($id, '_0123456789');
    }
public static function createBlockId ( BlockInterface $ block ) { $ id = '_' . $ block -> getName ( ) ; if ( $ block -> getParent ( ) && $ block -> getOption ( 'chained_block' ) ) { $ id = static :: createBlockId ( $ block -> getParent ( ) ) . $ id ; } return ltrim ( $ id , '_0123456789' ) ; }
Creates the block id.

@param BlockInterface $block

@return string
Creates the block id .