public function addText(string $text)
    {
        $contentConfig = [
            'text' => $text
        ];

        $contentItem = new ContentItem($contentConfig);

        $this->contentItems->addContentItemToCollection($contentItem);
    }
public function addText(string $text)
    {
        $contentConfig = [
            'text' => $text
        ];

        $contentItem = new ContentItem($contentConfig);

        $this->contentItems->addContentItemToCollection($contentItem);
    }
public function addText ( string $ text ) { $ contentConfig = [ 'text' => $ text ] ; $ contentItem = new ContentItem ( $ contentConfig ) ; $ this -> contentItems -> addContentItemToCollection ( $ contentItem ) ; }
Add some plain text

This is a helper to add a content item just via a string and
it generates and adds a \ContentItem object to its collection.

@param string $text
Add some plain text