Skip to content

Commit

Permalink
Add getter/setter for help text
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjudd authored Feb 18, 2018
1 parent 49cc36f commit 98a8e8a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/SegmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class SegmentField extends TextField
*/
protected $preview = '';

/**
* @var string
*/
protected $helpText;

/**
* @param array $modifiers
*
Expand Down Expand Up @@ -146,4 +151,22 @@ protected function setModifierProperties(SegmentFieldModifier $modifier, $form,

return $this;
}

/**
* @param string $string The secondary text to show
* @return $this
*/
public function setHelpText($string)
{
$this->helpText = $string;
return $this;
}

/**
* @return string the secondary text to show in the template
*/
public function getHelpText()
{
return $this->helpText;
}
}

0 comments on commit 98a8e8a

Please sign in to comment.