mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
17 lines
442 B
PHP
17 lines
442 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Subsites\Extensions;
|
|
|
|
use SilverStripe\Core\Extension;
|
|
use SilverStripe\Forms\FieldList;
|
|
use SilverStripe\Forms\HiddenField;
|
|
use SilverStripe\Subsites\State\SubsiteState;
|
|
|
|
class CMSPageAddControllerExtension extends Extension
|
|
{
|
|
public function updatePageOptions(FieldList $fields)
|
|
{
|
|
$fields->push(HiddenField::create('SubsiteID', 'SubsiteID', SubsiteState::singleton()->getSubsiteId()));
|
|
}
|
|
}
|