コード例 #1
0
ファイル: MacroCall.php プロジェクト: electro-modules/matisse
 protected function viewModel(ViewModel $viewModel)
 {
     parent::viewModel($viewModel);
     // Import the container's model (if any) to the macro's view model
     $viewModel->model = $this->context->getDataBinder()->getViewModel()->model;
     $this->macroInstance->importServices($viewModel);
 }