CoolCMS API

PdfTemplateLayoutFormTrait

Add/edit form of a PDF layout: `key`, `name`, `css`.

isDefault is not edited here, only by the inline toggle in the grid (PdfTemplateLayoutPresenter::createComponentGrid()), which enforces that exactly one layout is the default.

Table of Contents

Methods

createComponentEditForm()  : Form
savePdfTemplateLayoutForm()  : bool
setPdfTemplateLayoutFormDefaults()  : void

Methods

savePdfTemplateLayoutForm()

private savePdfTemplateLayoutForm(ArrayHash<string|int, mixed> $values) : bool
Parameters
$values : ArrayHash<string|int, mixed>
Return values
bool
On this page

Search results