protected static function YamlFormReflectionHelper::getClassName in YAML Form 8
Get a class's name without its namespace.
Parameters
string $class: A class.
Return value
string The class's name without its namespace.
1 call to YamlFormReflectionHelper::getClassName()
- YamlFormReflectionHelper::getParentClasses in src/
Utility/ YamlFormReflectionHelper.php - Get this element's class hierarchy.
File
- src/
Utility/ YamlFormReflectionHelper.php, line 39
Class
- YamlFormReflectionHelper
- Helper class for reflection methods.
Namespace
Drupal\yamlform\UtilityCode
protected static function getClassName($class) {
$parts = preg_split('#\\\\#', $class);
return end($parts);
}