You are here

protected function YamlFormPluginElementController::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.

File

src/Controller/YamlFormPluginElementController.php, line 310

Class

YamlFormPluginElementController
Controller for all form elements.

Namespace

Drupal\yamlform\Controller

Code

protected function getClassName($class) {
  $parts = preg_split('#\\\\#', $class);
  return end($parts);
}