Backend\Modules\ContentBlocks\Entity\ContentBlock::getText PHP 메소드

getText() 공개 메소드

public getText ( ) : string
리턴 string
    public function getText()
    {
        return $this->text;
    }

Usage Example

예제 #1
0
 /**
  * @param ContentBlock $contentBlock
  */
 public function __construct(ContentBlock $contentBlock)
 {
     $this->contentBlock = $contentBlock;
     $this->isVisible = !$contentBlock->isHidden();
     $this->title = $contentBlock->getTitle();
     $this->text = $contentBlock->getText();
     $this->template = $contentBlock->getTemplate();
 }