winter/modules/cms/components/SoftComponent.php
2020-04-05 01:02:43 +08:00

34 lines
714 B
PHP

<?php namespace Cms\Components;
use Cms\Classes\ComponentBase;
class SoftComponent extends ComponentBase
{
/**
* @var string Message that is shown with this component.
*/
protected $message;
/**
* @inheritDoc
*/
public function __construct($properties)
{
$this->componentCssClass = 'warning-component';
$this->inspectorEnabled = false;
parent::__construct(null, $properties);
}
/**
* @return array
*/
public function componentDetails()
{
return [
'name' => 'cms::lang.component.soft_component',
'description' => 'cms::lang.component.soft_component_description'
];
}
}