mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
Update Widget.php
Added static $only_available_in to add ability to show or hide in specific WidgetArea.
This commit is contained in:
parent
df56737d3c
commit
bc8546fe7c
@ -28,7 +28,13 @@ class Widget extends DataObject {
|
|||||||
private static $defaults = array(
|
private static $defaults = array(
|
||||||
'Enabled' => true
|
'Enabled' => true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
private static $only_available_in = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user