CoolCMS API

ModalAwareTrait

For admin components ({@see \App\Core\Base\BaseComponent}) that fill the shared {@see ModalWindow} from the layout. Gives a clean `$this->getModalWindow()` call instead of `$this->getPresenter()->getModalWindow()` and checks that the host really provides a modal ({@see ModalHost}).

Requires the component to run under BasePresenter, which implements ModalHost through ModalHostTrait.

Table of Contents

Methods

getModalWindow()  : ModalWindow

Methods

On this page

Search results