31 lines
592 B
PHP
31 lines
592 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\DropshipBundle\Admin\Tabs;
|
|
|
|
use KupShop\AdminBundle\Admin\WindowTab;
|
|
|
|
class DropshipmentRestrictionsTab extends WindowTab
|
|
{
|
|
protected $title = 'flapRestrictions';
|
|
protected $template = 'window/dropshipment.restrictions.tpl';
|
|
|
|
public static function getTypes()
|
|
{
|
|
return [
|
|
'Dropshipment' => 98,
|
|
];
|
|
}
|
|
|
|
public function isVisible()
|
|
{
|
|
return $this->getAction() === 'edit';
|
|
}
|
|
|
|
public function getLabel()
|
|
{
|
|
return translate('restrictions', 'Dropshipment');
|
|
}
|
|
}
|