LdapTools\AttributeConverter\ConvertGPLink::createOrModifyGPOLinks PHP Method

    protected function createOrModifyGPOLinks(array $gpoLinks)
    {
        $this->setDefaultLastValue('gPLink', '');
        $this->modifyGPOLinks($gpoLinks);
        if ($this->getOperationType() == self::TYPE_MODIFY) {
            $this->getBatch()->setModType(Batch::TYPE['REPLACE']);
        }
        /**
         * If all GPO links are removed on modification, the value should be a single space. This is what AD actually
         * does anyway, not sure why it doesn't just unset the attribute value.
         */
        return $this->getLastValue() === '' && $this->getBatch() ? ' ' : $this->getLastValue();
    }