silverstripe-contentreview/src/Extensions/ContentReviewLeftAndMainExtension.php

21 lines
491 B
PHP
Raw Normal View History

<?php
namespace SilverStripe\ContentReview\Extensions;
use SilverStripe\Admin\LeftAndMainExtension;
class ContentReviewLeftAndMainExtension extends LeftAndMainExtension
{
/**
* Append content review schema configuration
*
* @param array &$clientConfig
*/
public function updateClientConfig(&$clientConfig)
{
$clientConfig['form']['ReviewContentForm'] = [
'schemaUrl' => $this->owner->Link('schema/ReviewContentForm')
];
}
}