php/mixins/GroupElement.php
public function removeItems( $items ) {
		foreach ( $items as $item ) {
			$index = array_search( $item, $this->items, true );
			if ( $index !== false ) {
				$item->setElementGroup( null );
				array_splice( $this->items, $index, 1 );
			}
		}

		// Update actual target element contents to reflect our list
		$this->group->clearContent();
		$this->group->appendContent( $this->items );

		return $this;
	}
public function removeItems( $items ) {
		foreach ( $items as $item ) {
			$index = array_search( $item, $this->items, true );
			if ( $index !== false ) {
				$item->setElementGroup( null );
				array_splice( $this->items, $index, 1 );
			}
		}

		// Update actual target element contents to reflect our list
		$this->group->clearContent();
		$this->group->appendContent( $this->items );

		return $this;
	}
public function removeItems ( $ items ) { foreach ( $ items as $ item ) { $ index = array_search ( $ item , $ this -> items , true ) ; if ( $ index !== false ) { $ item -> setElementGroup ( null ) ; array_splice ( $ this -> items , $ index , 1 ) ; } } // Update actual target element contents to reflect our list $ this -> group -> clearContent ( ) ; $ this -> group -> appendContent ( $ this -> items ) ; return $ this ; }
Remove items.

@param Element[] $items Items to remove
@return $this
Remove items .