PHP Класс MetaModels\DcGeneral\Events\MetaModel\CreateVariantButton

Наследование: extends MetaModels\DcGeneral\Events\BaseSubscriber
Показать файл Открыть проект

Открытые методы

Метод Описание
createButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void Check if we have to add the "Create variant" button.
handleCreateVariantAction ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void Handle the "create variant" event.
presetVariantBase ( ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent $event ) : void Check the items before the edit start. If there is a item with variant support and a empty vargroup it must be a base. So set the varbase to 1.

Защищенные методы

Метод Описание
breadcrumb ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : string Get the breadcrumb navigation via event.
registerEventsInDispatcher ( ) : void Register all listeners.

Описание методов

breadcrumb() защищенный Метод

Get the breadcrumb navigation via event.
protected breadcrumb ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : string
$environment ContaoCommunityAlliance\DcGeneral\EnvironmentInterface The environment.
Результат string

createButton() публичный Метод

Check if we have to add the "Create variant" button.
public createButton ( ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\GetOperationButtonEvent The event.
Результат void

handleCreateVariantAction() публичный Метод

Handle the "create variant" event.
public handleCreateVariantAction ( ContaoCommunityAlliance\DcGeneral\Event\ActionEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\ActionEvent The action Event being executed.
Результат void

presetVariantBase() публичный Метод

Check the items before the edit start. If there is a item with variant support and a empty vargroup it must be a base. So set the varbase to 1.
public presetVariantBase ( ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent $event ) : void
$event ContaoCommunityAlliance\DcGeneral\Event\PreEditModelEvent The event with the model.
Результат void

registerEventsInDispatcher() защищенный Метод

Register all listeners.
protected registerEventsInDispatcher ( ) : void
Результат void