mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
8b8b8e3620
* Add i18n javascript source file and Transifex configuration * Add npm requirements, React + entwine wrapper for CMS * Overload LeftAndMain::getSchema... methods in extension so they can be used * Refactor CSS to only the content review button
21 lines
491 B
PHP
21 lines
491 B
PHP
<?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')
|
|
];
|
|
}
|
|
}
|