Apple_Exporter\Components\Body::build PHP Method

build() protected method

Build the component.
protected build ( string $text )
$text string
    protected function build($text)
    {
        $this->json = array('role' => 'body', 'text' => $this->markdown->parse($text), 'format' => 'markdown');
        if ('yes' == $this->get_setting('initial_dropcap')) {
            // Toggle setting. This should only happen in the initial paragraph.
            $this->set_setting('initial_dropcap', 'no');
            $this->set_initial_dropcap_style();
        } else {
            $this->set_default_style();
        }
        $this->set_default_layout();
    }