Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UppercaseTitle.php
Go to the documentation of this file.
1 <?php
9 
15 {
22  public function filter($value)
23  {
24  if (function_exists('mb_convert_case')) {
25  $value = mb_convert_case($value, MB_CASE_TITLE, 'UTF-8');
26  } else {
27  $value = ucwords($value);
28  }
29  return $value;
30  }
31 }
$value
Definition: gender.phtml:16