Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make FormHelper::domId() protected.
I can't think of a good reason for it to be public right now, so I'll
make it protected instead.
  • Loading branch information
markstory committed Feb 17, 2014
1 parent 76ea8f1 commit 9c270cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/View/Helper/FormHelper.php
Expand Up @@ -704,7 +704,7 @@ public function error($field, $text = null, $options = array()) {
*
* - `for` - Set the for attribute, if its not defined the for attribute
* will be generated from the $fieldName parameter using
* FormHelper::domId().
* FormHelper::_domId().
*
* Examples:
*
Expand Down Expand Up @@ -768,7 +768,7 @@ public function label($fieldName, $text = null, $options = array()) {
$labelFor = $options['for'];
unset($options['for']);
} else {
$labelFor = $this->domId($fieldName);
$labelFor = $this->_domId($fieldName);
}
$attrs = $options + [
'for' => $labelFor,
Expand All @@ -783,7 +783,7 @@ public function label($fieldName, $text = null, $options = array()) {
* @param string $value The value to convert into an ID.
* @return string The generated id.
*/
public function domId($value) {
protected function _domId($value) {
return mb_strtolower(Inflector::slug($value, '-'));
}

Expand Down

0 comments on commit 9c270cb

Please sign in to comment.