src/ngrest/render/RenderCrud.php
public function renderElementPlugins($configContext, $typeConfig, $uniqueId, $attribute, $ngRestModel, $label, $elmni18n)
    {
        $args = $typeConfig['args'];
        $args['renderContext'] = $this;
        $obj = NgRest::createPluginObject($typeConfig['class'], $attribute, $label, $elmni18n, $args);
        $method = 'render'.ucfirst($configContext);
        $html = $obj->$method($uniqueId, $ngRestModel);

        // parsed the element output content to a string
        $content = is_array($html) ? implode(" ", $html) : $html;

        // wrapp a new tag around fields which are required.
        if ($configContext !== self::TYPE_LIST) {
            $isRequired = $this->getModel()->isAttributeRequired($attribute);
            if ($isRequired) {
                $content = '<span class="bold-form-label">'.$content.'</span>';
            }
        }

        return $content;
    }
public function renderElementPlugins($configContext, $typeConfig, $uniqueId, $attribute, $ngRestModel, $label, $elmni18n)
    {
        $args = $typeConfig['args'];
        $args['renderContext'] = $this;
        $obj = NgRest::createPluginObject($typeConfig['class'], $attribute, $label, $elmni18n, $args);
        $method = 'render'.ucfirst($configContext);
        $html = $obj->$method($uniqueId, $ngRestModel);

        // parsed the element output content to a string
        $content = is_array($html) ? implode(" ", $html) : $html;

        // wrapp a new tag around fields which are required.
        if ($configContext !== self::TYPE_LIST) {
            $isRequired = $this->getModel()->isAttributeRequired($attribute);
            if ($isRequired) {
                $content = '<span class="bold-form-label">'.$content.'</span>';
            }
        }

        return $content;
    }
public function renderElementPlugins ( $ configContext , $ typeConfig , $ uniqueId , $ attribute , $ ngRestModel , $ label , $ elmni18n ) { $ args = $ typeConfig [ 'args' ] ; $ args [ 'renderContext' ] = $ this ; $ obj = NgRest :: createPluginObject ( $ typeConfig [ 'class' ] , $ attribute , $ label , $ elmni18n , $ args ) ; $ method = 'render' . ucfirst ( $ configContext ) ; $ html = $ obj -> $ method ( $ uniqueId , $ ngRestModel ) ; // parsed the element output content to a string $ content = is_array ( $ html ) ? implode ( " " , $ html ) : $ html ; // wrapp a new tag around fields which are required. if ( $ configContext !== self :: TYPE_LIST ) { $ isRequired = $ this -> getModel ( ) -> isAttributeRequired ( $ attribute ) ; if ( $ isRequired ) { $ content = '<span class="bold-form-label">' . $ content . '</span>' ; } } return $ content ; }
Render the input element

@param string $configContext
@param array $typeConfig
@param string $uniqueId Example unique field id: id="id-50eef582a7330e93b86b55ffed379965"
@param string $attribute
@param string $ngRestModel
@param string $label
@param boolean $elmni18n
@return string The rendered element
Render the input element