2015-04-21 06:47:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class GridFieldFormAction extends GridField_FormAction {
|
|
|
|
/**
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $extraAttributes = array();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param array $attributes
|
|
|
|
*/
|
|
|
|
public function setExtraAttributes(array $attributes) {
|
|
|
|
$this->extraAttributes = $attributes;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
2015-05-09 16:33:12 +02:00
|
|
|
public function getAttributes() {
|
2015-04-21 06:47:46 +02:00
|
|
|
$attributes = parent::getAttributes();
|
|
|
|
|
|
|
|
return array_merge(
|
|
|
|
$attributes,
|
|
|
|
$this->extraAttributes
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|