create_empty_contentblock()
create_empty_contentblock() : \CGContentUtils\ContentBlock
Create an empty content block object.
The CGContentUtils module API
create_empty_contentblock() : \CGContentUtils\ContentBlock
Create an empty content block object.
addContentBlock(\CGContentUtils\ContentBlock $block)
Store a new content block.
This method allows only creating a content block, it does not allow updating an existing content block. If valid options are passed in, this method will create and save the content block option, and return void. It will throw an exception if the block already exists or if the block object is somehow invalid.
| \CGContentUtils\ContentBlock | $block | The content block to add. |