2016-08-16 03:22:58 +02:00
|
|
|
<?php
|
2016-08-23 04:36:06 +02:00
|
|
|
|
2016-08-16 03:22:58 +02:00
|
|
|
namespace SilverStripe\CMS\Forms;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Readonly version of a site tree URL segment field
|
|
|
|
*/
|
|
|
|
class SiteTreeURLSegmentField_Readonly extends SiteTreeURLSegmentField
|
|
|
|
{
|
2017-01-25 21:59:25 +01:00
|
|
|
protected $readonly = true;
|
2016-08-16 03:22:58 +02:00
|
|
|
|
2017-01-25 21:59:25 +01:00
|
|
|
public function performReadonlyTransformation()
|
|
|
|
{
|
|
|
|
return clone $this;
|
|
|
|
}
|
2016-08-16 03:22:58 +02:00
|
|
|
}
|