Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
NameBuilder Class Reference

Public Member Functions

 buildClassName ($parts)
 

Detailed Description

Definition at line 10 of file NameBuilder.php.

Member Function Documentation

◆ buildClassName()

buildClassName (   $parts)

Builds namespace + classname out of the parts array

Split every part into pieces by _ and \ and uppercase every piece Then join them back using \

Parameters
string[]$parts
Returns
string

Definition at line 21 of file NameBuilder.php.

22  {
23  $separator = '\\';
24  $string = join($separator, $parts);
25  $string = str_replace('_', $separator, $string);
26  $className = str_replace(' ', $separator, ucwords(str_replace($separator, ' ', $string)));
27  return $className;
28  }
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31

The documentation for this class was generated from the following file: