public static function NormalizeTrait::normalizeClassName in Markdown 8.2
Normalizes class names to prevent double escaping.
Parameters
string|object $className: The class name to normalize.
Return value
string The normalized classname.
6 calls to NormalizeTrait::normalizeClassName()
- AllowedHtmlManager::getExtensionDefinitions in src/
PluginManager/ AllowedHtmlManager.php - Retrieves definitions supported by parser extensions.
- AllowedHtmlManager::getParserDefinitions in src/
PluginManager/ AllowedHtmlManager.php - Retrieves the definition provided by the parser.
- InstallablePluginManager::convertInstalledToLibraries in src/
PluginManager/ InstallablePluginManager.php - Converts plugin definitions using the old "installed" method to libraries.
- InstallablePluginManager::getDefinitionByClassName in src/
PluginManager/ InstallablePluginManager.php - Retrieves a definition by class name.
- InstallablePluginManager::processDefinition in src/
PluginManager/ InstallablePluginManager.php - Performs extra processing on plugin definitions.
File
- src/
Traits/ NormalizeTrait.php, line 110
Class
- NormalizeTrait
- Trait for providing normalization methods.
Namespace
Drupal\markdown\TraitsCode
public static function normalizeClassName($className) {
if (is_object($className)) {
$className = get_class($className);
}
return is_string($className) ? ltrim(str_replace('\\\\', '\\', $className), '\\') : $className;
}