| 1 | <?php  | 
            ||
| 23 | class CKEditorJavascriptHelper extends Helper  | 
            ||
| 24 | { | 
            ||
| 25 | /** @var \Symfony\Component\Form\FormRendererInterface */  | 
            ||
| 26 | private $renderer;  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * Creates a CKEditor Javascript helper.  | 
            ||
| 30 | *  | 
            ||
| 31 | * @param \Symfony\Component\Form\FormRendererInterface $renderer The form renderer.  | 
            ||
| 32 | */  | 
            ||
| 33 | public function __construct(FormRendererInterface $renderer)  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Renders a form javascript fragment.  | 
            ||
| 40 | *  | 
            ||
| 41 | * @param FormView $view The form view.  | 
            ||
| 42 | * @param bool $prototype TRUE if the form view is a prototype else FALSE.  | 
            ||
| 43 | *  | 
            ||
| 44 | * @return string The rendered form javascript fragment.  | 
            ||
| 45 | */  | 
            ||
| 46 | public function renderJavascript(FormView $view, $prototype = false)  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 |      * {@inheritdoc} | 
            ||
| 53 | */  | 
            ||
| 54 | public function getName()  | 
            ||
| 58 | }  | 
            ||
| 59 |