v0.9.7
This commit is contained in:
commit
574aed3a9a
287 files changed
+19547
No files matched your search
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace IriksIT\Manager\Modules\Reviews;
|
||||
|
||||
use IriksIT\Manager\Modules\BaseModule;
|
||||
use IriksIT\Manager\Support\Names;
|
||||
use IriksIT\Manager\Support\Permission;
|
||||
|
||||
class ReviewsModule extends BaseModule
|
||||
{
|
||||
public function key(): string
|
||||
{
|
||||
return 'reviews';
|
||||
}
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return 'Reviews';
|
||||
}
|
||||
|
||||
public function enabledByDefault(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function tables(): array
|
||||
{
|
||||
return ['reviews'];
|
||||
}
|
||||
|
||||
public function permissions(): array
|
||||
{
|
||||
return [
|
||||
new Permission('reviews.manage', 'Manage the reviews', 'Site content'),
|
||||
];
|
||||
}
|
||||
|
||||
public function navigation(): array
|
||||
{
|
||||
return [
|
||||
['label' => 'Reviews', 'section' => 'Visitors', 'route' => Names::route('reviews.index'), 'permission' => 'reviews.manage'],
|
||||
];
|
||||
}
|
||||
|
||||
public function views(): array
|
||||
{
|
||||
return ['reviews.index' => 'Opened the reviews'];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user