protected function getFieldPlaceHolderForMenu(Label $placeholder = null, $name = '')
    {
        if (is_null($placeholder)) {
            return '';
        }

        return sprintf('<option value="" style="display: none;" {{ %s == \'\' ? \'selected\' : \'\' }} disabled selected>%s</option>', $this->getRawOptionValue($name, ''), $this->getTitle($placeholder, true));
    }
protected function getFieldPlaceHolderForMenu(Label $placeholder = null, $name = '')
    {
        if (is_null($placeholder)) {
            return '';
        }

        return sprintf('<option value="" style="display: none;" {{ %s == \'\' ? \'selected\' : \'\' }} disabled selected>%s</option>', $this->getRawOptionValue($name, ''), $this->getTitle($placeholder, true));
    }
protected function getFieldPlaceHolderForMenu ( Label $ placeholder = null , $ name = '' ) { if ( is_null ( $ placeholder ) ) { return '' ; } return sprintf ( '<option value="" style="display: none;" {{ %s == \'\' ? \'selected\' : \'\' }} disabled selected>%s</option>' , $ this -> getRawOptionValue ( $ name , '' ) , $ this -> getTitle ( $ placeholder , true ) ) ; }
Get the placeholder attribute for a menu.

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

@return string
Get the placeholder attribute for a menu .