src/ngrest/render/RenderCrud.php
public function generatePluginHtml(array $element, $configContext)
    {
        if ($element['i18n'] && $configContext !== self::TYPE_LIST) {

            return $this->view->render('_crudform_i18n_pluginhtml', [
                'element' => $element,
                'configContext' => $configContext,
                'languages' => Lang::getQuery(),
                'helpButtonHtml' => $this->createFieldHelpButton($element, $configContext),
            ]);
        }   

        $ngModel = $this->ngModelString($configContext, $element['name']);

        return $this->createFieldHelpButton($element, $configContext) . 
            $this->renderElementPlugins($configContext, $element['type'], Inflector::slug($ngModel), $element['name'], $ngModel, $element['alias'], false);
    }
public function generatePluginHtml(array $element, $configContext)
    {
        if ($element['i18n'] && $configContext !== self::TYPE_LIST) {

            return $this->view->render('_crudform_i18n_pluginhtml', [
                'element' => $element,
                'configContext' => $configContext,
                'languages' => Lang::getQuery(),
                'helpButtonHtml' => $this->createFieldHelpButton($element, $configContext),
            ]);
        }   

        $ngModel = $this->ngModelString($configContext, $element['name']);

        return $this->createFieldHelpButton($element, $configContext) . 
            $this->renderElementPlugins($configContext, $element['type'], Inflector::slug($ngModel), $element['name'], $ngModel, $element['alias'], false);
    }
public function generatePluginHtml ( array $ element , $ configContext ) { if ( $ element [ 'i18n' ] && $ configContext !== self :: TYPE_LIST ) { return $ this -> view -> render ( '_crudform_i18n_pluginhtml' , [ 'element' => $ element , 'configContext' => $ configContext , 'languages' => Lang :: getQuery ( ) , 'helpButtonHtml' => $ this -> createFieldHelpButton ( $ element , $ configContext ) , ] ) ; } $ ngModel = $ this -> ngModelString ( $ configContext , $ element [ 'name' ] ) ; return $ this -> createFieldHelpButton ( $ element , $ configContext ) . $ this -> renderElementPlugins ( $ configContext , $ element [ 'type' ] , Inflector :: slug ( $ ngModel ) , $ element [ 'name' ] , $ ngModel , $ element [ 'alias' ] , false ) ; }
Generate the HTML code for the plugin element based on the current context.

@param array $element
@param string $configContext
@return string
@since 2.0
Generate the HTML code for the plugin element based on the current context .