1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace CMText\RichContent\Templates;
- abstract class TemplateContentBase implements ITemplateContent
- {
- /**
- * Template key
- */
- const TEMPLATE_KEY = '';
- /**
- * the Content Object with the actual template properties.
- * @var $content object
- */
- protected $content;
- /**
- * @inheritDoc
- */
- #[\ReturnTypeWillChange]
- function jsonSerialize()
- {
- return (object)[
- static::TEMPLATE_KEY => $this->content
- ];
- }
- }
|