extraClass = ' '.$extraClass; parent::__construct($action, $title); } public function performReadonlyTransformation() { return $this->castedCopy('SilverStripe\\Forms\\InlineFormAction_ReadOnly'); } /** * @param array $properties * @return string */ public function Field($properties = array()) { return FormField::create_tag('input', array( 'type' => 'submit', 'name' => sprintf('action_%s', $this->getName()), 'value' => $this->title, 'id' => $this->ID(), 'class' => sprintf('action%s', $this->extraClass), )); } public function Title() { return false; } }