GridFieldConfig_BlockEditor::__construct
Signature
public function __construct([string
$sortField = NULL,
[array
$allowedBlocks = NULL,
[int
$itemsPerPage = NULL]]] )
Parameters
$sortField
— string- - Field to sort the blocks on. If this is set, it will also make the
blocks sortable in the CMS (requires SortableGridField module!) $allowedBlocks
— array- - a set of allowed class names, optionally mapped to titles
$itemsPerPage
— int- - How many items per page should show up