mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Added SSViewer::getOption() as a logical counterpart to SSViewer::setOption()
This commit is contained in:
parent
2279e9f3b3
commit
2ce1882e38
@ -356,6 +356,15 @@ class SSViewer {
|
||||
public static function setOption($optionName, $optionVal) {
|
||||
SSViewer::$options[$optionName] = $optionVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param String
|
||||
* @return Mixed
|
||||
*/
|
||||
static function getOption($optionName) {
|
||||
return SSViewer::$options[$optionName];
|
||||
}
|
||||
|
||||
protected static $options = array(
|
||||
'rewriteHashlinks' => true,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user