protected function getRelatedDocumentsForAutocompleter()
    {
        $documents = DMSDocument::get()->exclude('ID', $this->ID);
        $this->extend('updateRelatedDocumentsForAutocompleter', $documents);
        return $documents;
    }
protected function getRelatedDocumentsForAutocompleter()
    {
        $documents = DMSDocument::get()->exclude('ID', $this->ID);
        $this->extend('updateRelatedDocumentsForAutocompleter', $documents);
        return $documents;
    }
protected function getRelatedDocumentsForAutocompleter ( ) { $ documents = DMSDocument :: get ( ) -> exclude ( 'ID' , $ this -> ID ) ; $ this -> extend ( 'updateRelatedDocumentsForAutocompleter' , $ documents ) ; return $ documents ; }
Get the list of documents to show in "related documents". This can be modified via the extension point, for
example if you wanted to exclude embargoed documents or something similar.

@return DataList
Get the list of documents to show in related documents . This can be modified via the extension point for example if you wanted to exclude embargoed documents or something similar .