Permalink
Browse files

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...
1 parent 76ea8f1 commit 9c270cb604f24d9e068089a865b0dc478e964dcb @markstory markstory committed Feb 17, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/View/Helper/FormHelper.php
@@ -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:
*
@@ -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,
@@ -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, '-'));
}

0 comments on commit 9c270cb

Please sign in to comment.