Apple_Exporter\Components\Quote::build PHP Method

build() protected method

Build the component.
protected build ( string $text )
$text string
    protected function build($text)
    {
        preg_match('#<blockquote.*?>(.*?)</blockquote>#si', $text, $matches);
        $text = $matches[1];
        $this->json = array('role' => 'container', 'layout' => array('columnStart' => 3, 'columnSpan' => 4), 'style' => array('border' => array('all' => array('width' => $this->get_setting('pullquote_border_width'), 'style' => $this->get_setting('pullquote_border_style'), 'color' => $this->get_setting('pullquote_border_color')), 'left' => false, 'right' => false)), 'components' => array(array('role' => 'quote', 'text' => $this->markdown->parse($text), 'format' => 'markdown', 'layout' => 'quote-layout', 'textStyle' => 'default-pullquote')));
        $this->set_style();
        $this->set_layout();
        $this->set_anchor();
    }