public function getCustomText($fallbackText = "Learn More") {
    if ($this->getAllowCustomText() && !empty($this->customText)) {
      return $this->customText;
    }

    $defaultText = $this->getDefaultText();
    return empty($defaultText)
      ? $fallbackText
      : $defaultText;
  }
public function getCustomText($fallbackText = "Learn More") {
    if ($this->getAllowCustomText() && !empty($this->customText)) {
      return $this->customText;
    }

    $defaultText = $this->getDefaultText();
    return empty($defaultText)
      ? $fallbackText
      : $defaultText;
  }
public function getCustomText ( $ fallbackText = "Learn More" ) { if ( $ this -> getAllowCustomText ( ) && ! empty ( $ this -> customText ) ) { return $ this -> customText ; } $ defaultText = $ this -> getDefaultText ( ) ; return empty ( $ defaultText ) ? $ fallbackText : $ defaultText ; }
Try to use provided custom text or field default.
Allows user to specify a fallback string if the custom text and default are not set.

@param string $fallbackText
@return string
Try to use provided custom text or field default . Allows user to specify a fallback string if the custom text and default are not set .