Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 18, 2020
1 parent 924e2ea commit 86ea4a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added src/assets/icons/component-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/components/MeasureComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace skeeks\cms\measure\components;

use skeeks\cms\base\Component;
use skeeks\cms\measure\assets\Asset;
use skeeks\yii2\form\fields\SelectField;
use skeeks\yii2\measureClassifier\Measure;
use yii\helpers\ArrayHelper;
Expand All @@ -20,6 +21,7 @@
*/
class MeasureComponent extends Component
{

/**
* Можно задать название и описание компонента
* @return array
Expand All @@ -28,6 +30,9 @@ static public function descriptorConfig()
{
return array_merge(parent::descriptorConfig(), [
'name' => \Yii::t('skeeks/measure', 'Units of measurement'),
'image' => [
Asset::class, 'icons/component-icon.png'
],
]);
}

Expand Down

0 comments on commit 86ea4a0

Please sign in to comment.