class DMSGridFieldAddNewButton extends GridFieldAddNewButton implements GridField_HTMLProvider (View source)

Properties

protected $targetFragment from  GridFieldAddNewButton
protected $buttonName from  GridFieldAddNewButton
protected int $documentSetId

The document set ID that the document should be attached to

Methods

public
setButtonName($name)

No description

public
__construct($targetFragment = 'before')

No description

public
array
getHTMLFragments($gridField)

Overriding the parent method to change the template that the DMS add button will be rendered with

public
$this
setDocumentSetId(int $id)

Set the document set ID that this document should be attached to

public
int
getDocumentSetId()

Get the document set ID that this document should be attached to

Details

setButtonName($name)

No description

Parameters

$name

__construct($targetFragment = 'before')

No description

Parameters

$targetFragment

array getHTMLFragments($gridField)

Overriding the parent method to change the template that the DMS add button will be rendered with

Parameters

$gridField

Return Value

array

$this setDocumentSetId(int $id)

Set the document set ID that this document should be attached to

Parameters

int $id

Return Value

$this

int getDocumentSetId()

Get the document set ID that this document should be attached to

Return Value

int