silverstripe-blog/code/admin/GridFieldFormAction.php
Christopher Pitt 787c02a19d Clean up
2015-05-11 10:11:21 +12:00

27 lines
447 B
PHP

<?php
class GridFieldFormAction extends GridField_FormAction {
/**
* @var array
*/
protected $extraAttributes = array();
/**
* @param array $attributes
*/
public function setExtraAttributes(array $attributes) {
$this->extraAttributes = $attributes;
}
/**
* @return array
*/
public function getAttributes() {
$attributes = parent::getAttributes();
return array_merge(
$attributes,
$this->extraAttributes
);
}
}