private function insertUpdate($parentUpdate, $update)
    {
        $el = $update instanceof ElementDependentLayoutUpdateInterface
            ? $update->getElement()
            : 'root';

        $parentUpdateIndex = array_search($parentUpdate, $this->updates[$el]);

        $this->updates[$el] = array_merge(
            array_slice($this->updates[$el], 0, $parentUpdateIndex, true),
            [$update],
            array_slice($this->updates[$el], $parentUpdateIndex, null, true)
        );
    }
private function insertUpdate($parentUpdate, $update)
    {
        $el = $update instanceof ElementDependentLayoutUpdateInterface
            ? $update->getElement()
            : 'root';

        $parentUpdateIndex = array_search($parentUpdate, $this->updates[$el]);

        $this->updates[$el] = array_merge(
            array_slice($this->updates[$el], 0, $parentUpdateIndex, true),
            [$update],
            array_slice($this->updates[$el], $parentUpdateIndex, null, true)
        );
    }
private function insertUpdate ( $ parentUpdate , $ update ) { $ el = $ update instanceof ElementDependentLayoutUpdateInterface ? $ update -> getElement ( ) : 'root' ; $ parentUpdateIndex = array_search ( $ parentUpdate , $ this -> updates [ $ el ] ) ; $ this -> updates [ $ el ] = array_merge ( array_slice ( $ this -> updates [ $ el ] , 0 , $ parentUpdateIndex , true ) , [ $ update ] , array_slice ( $ this -> updates [ $ el ] , $ parentUpdateIndex , null , true ) ) ; }
Insert import update right after its parent update

@param ImportsAwareLayoutUpdateInterface $parentUpdate
@param LayoutUpdateImportInterface $update
Insert import update right after its parent update