mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
19 lines
333 B
PHP
19 lines
333 B
PHP
|
<?php
|
||
|
namespace SilverStripe\CMS\Forms;
|
||
|
|
||
|
/**
|
||
|
* Readonly version of a site tree URL segment field
|
||
|
*
|
||
|
* @package forms
|
||
|
* @subpackage fields-basic
|
||
|
*/
|
||
|
class SiteTreeURLSegmentField_Readonly extends SiteTreeURLSegmentField
|
||
|
{
|
||
|
protected $readonly = true;
|
||
|
|
||
|
public function performReadonlyTransformation()
|
||
|
{
|
||
|
return clone $this;
|
||
|
}
|
||
|
}
|