mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Deprecated ImageFormAction, use FormAction with setAttribute('src', 'myimage.png')
This commit is contained in:
parent
d535847f27
commit
b4d7e51da3
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Action that uses an image instead of a button
|
||||
* Action that uses an image instead of a button.
|
||||
*
|
||||
* @deprecated 3.0 Use FormAction with setAttribute('src', 'myimage.png') and custom JavaScript to achieve hover effect
|
||||
* @package forms
|
||||
* @subpackage actions
|
||||
*/
|
||||
@ -16,6 +18,8 @@ class ImageFormAction extends FormAction {
|
||||
* @param form The parent form, auto-set when the field is placed inside a form
|
||||
*/
|
||||
function __construct($action, $title = "", $image = "", $hoverImage = null, $className = null, $form = null) {
|
||||
Deprecation::notice('3.0', "Use FormAction with setAttribute('src', 'myimage.png') and custom JavaScript to achieve hover effect");
|
||||
|
||||
$this->image = $image;
|
||||
$this->hoverImage = $hoverImage;
|
||||
$this->className = $className;
|
||||
|
Loading…
Reference in New Issue
Block a user