protected function CreateClass::extractNS in Drupal 7 to 8/9 Module Upgrader 8
1 call to CreateClass::extractNS()
- CreateClass::execute in src/
Plugin/ DMU/ Fixer/ CreateClass.php - Executes the plugin.
File
- src/
Plugin/ DMU/ Fixer/ CreateClass.php, line 74
Class
- CreateClass
- Plugin annotation @Fixer( id = "create_class" )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\FixerCode
protected function extractNS($path) {
$path = ltrim($path, '\\');
return substr($path, 0, strrpos($path, '\\'));
}