mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
27 lines
447 B
PHP
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
|
|
);
|
|
}
|
|
} |