protected function makeModelLabel($key, array $properties, $isPlain, $lang)
    {
        $text = $properties['text'];

        $this->replaceModelName($text, $this->modelName);

        $localeKey = sprintf('%s.%s', $this->localeGroup, $key);

        $label = new Label($text, $localeKey, $isPlain, $lang, $key);
        $label->template = $properties['template'];
        $label->isInFunction = $this->isInFunction($properties);

        return $label;
    }
protected function makeModelLabel($key, array $properties, $isPlain, $lang)
    {
        $text = $properties['text'];

        $this->replaceModelName($text, $this->modelName);

        $localeKey = sprintf('%s.%s', $this->localeGroup, $key);

        $label = new Label($text, $localeKey, $isPlain, $lang, $key);
        $label->template = $properties['template'];
        $label->isInFunction = $this->isInFunction($properties);

        return $label;
    }
protected function makeModelLabel ( $ key , array $ properties , $ isPlain , $ lang ) { $ text = $ properties [ 'text' ] ; $ this -> replaceModelName ( $ text , $ this -> modelName ) ; $ localeKey = sprintf ( '%s.%s' , $ this -> localeGroup , $ key ) ; $ label = new Label ( $ text , $ localeKey , $ isPlain , $ lang , $ key ) ; $ label -> template = $ properties [ 'template' ] ; $ label -> isInFunction = $ this -> isInFunction ( $ properties ) ; return $ label ; }
Makes a label from a model

@param string $key
@param array $properties
@param bool $isPlain
@param string $lang

@return CrestApps\CodeGenerator\Models\Label
Makes a label from a model