protected function getLabelElement($name, Label $label)
    {
        $labelStub = $this->getStubContent('form-label-field.blade', $this->template);

        $this->replaceFieldName($labelStub, $name)
            ->replaceFieldTitle($labelStub, $this->getTitle($label));

        return $labelStub;
    }
protected function getLabelElement($name, Label $label)
    {
        $labelStub = $this->getStubContent('form-label-field.blade', $this->template);

        $this->replaceFieldName($labelStub, $name)
            ->replaceFieldTitle($labelStub, $this->getTitle($label));

        return $labelStub;
    }
protected function getLabelElement ( $ name , Label $ label ) { $ labelStub = $ this -> getStubContent ( 'form-label-field.blade' , $ this -> template ) ; $ this -> replaceFieldName ( $ labelStub , $ name ) -> replaceFieldTitle ( $ labelStub , $ this -> getTitle ( $ label ) ) ; return $ labelStub ; }
Creates html label.

@param string $name
@param CrestApps\CodeGenerator\Models\Label $label

@return string
Creates html label .