public function render(ElementInterface $element)
    {
        $renderer = $this->getView();

        if ($element instanceof CkEditor) {
            /** @noinspection PhpUndefinedMethodInspection */
            $plugin = $renderer->plugin('form_ckeditor');

            return $plugin($element);
        }

        return parent::render($element);
    }
public function render(ElementInterface $element)
    {
        $renderer = $this->getView();

        if ($element instanceof CkEditor) {
            /** @noinspection PhpUndefinedMethodInspection */
            $plugin = $renderer->plugin('form_ckeditor');

            return $plugin($element);
        }

        return parent::render($element);
    }
public function render ( ElementInterface $ element ) { $ renderer = $ this -> getView ( ) ; if ( $ element instanceof CkEditor ) { /** @noinspection PhpUndefinedMethodInspection */ $ plugin = $ renderer -> plugin ( 'form_ckeditor' ) ; return $ plugin ( $ element ) ; } return parent :: render ( $ element ) ; }
Render an element.
Introspects the element type and attributes to determine which helper to utilize when rendering.

@param ElementInterface $element

@return string
Render an element . Introspects the element type and attributes to determine which helper to utilize when rendering .