private function validateViewIds(BlockInterface $block = null, BlockView $view)
    {
        if (!$block->getOption('render_id')) {
            return;
        }

        $id = $view->vars['id'];
        $hash = spl_object_hash($block);
        $newIds = [$hash];

        if (isset($this->viewIds[$id]) && !\in_array($hash, $this->viewIds[$id])) {
            $this->data['duplicate_ids'][] = $id;
            $this->data['duplicate_ids'] = array_unique($this->data['duplicate_ids']);

            $newIds = array_merge($this->viewIds[$id], $newIds);
        }

        $this->viewIds[$id] = $newIds;
    }
private function validateViewIds(BlockInterface $block = null, BlockView $view)
    {
        if (!$block->getOption('render_id')) {
            return;
        }

        $id = $view->vars['id'];
        $hash = spl_object_hash($block);
        $newIds = [$hash];

        if (isset($this->viewIds[$id]) && !\in_array($hash, $this->viewIds[$id])) {
            $this->data['duplicate_ids'][] = $id;
            $this->data['duplicate_ids'] = array_unique($this->data['duplicate_ids']);

            $newIds = array_merge($this->viewIds[$id], $newIds);
        }

        $this->viewIds[$id] = $newIds;
    }
private function validateViewIds ( BlockInterface $ block = null , BlockView $ view ) { if ( ! $ block -> getOption ( 'render_id' ) ) { return ; } $ id = $ view -> vars [ 'id' ] ; $ hash = spl_object_hash ( $ block ) ; $ newIds = [ $ hash ] ; if ( isset ( $ this -> viewIds [ $ id ] ) && ! \ in_array ( $ hash , $ this -> viewIds [ $ id ] ) ) { $ this -> data [ 'duplicate_ids' ] [ ] = $ id ; $ this -> data [ 'duplicate_ids' ] = array_unique ( $ this -> data [ 'duplicate_ids' ] ) ; $ newIds = array_merge ( $ this -> viewIds [ $ id ] , $ newIds ) ; } $ this -> viewIds [ $ id ] = $ newIds ; }
Validate the view Id.

@param BlockInterface $block
@param BlockView      $view
Validate the view Id .