EditorJS/EditorJS.php
private function validateBlocks()
    {
        foreach ($this->blocks as $block) {
            if (!$this->handler->validateBlock($block['type'], $block['data'])) {
                return false;
            }
        }

        return true;
    }
private function validateBlocks()
    {
        foreach ($this->blocks as $block) {
            if (!$this->handler->validateBlock($block['type'], $block['data'])) {
                return false;
            }
        }

        return true;
    }
private function validateBlocks ( ) { foreach ( $ this -> blocks as $ block ) { if ( ! $ this -> handler -> validateBlock ( $ block [ 'type' ] , $ block [ 'data' ] ) ) { return false ; } } return true ; }
Validate blocks structure according to the Handler's rules.

@return bool
Validate blocks structure according to the Handler s rules .