19declare(strict_types=1);
46 $name = $element->getDefinition()->
name();
48 'metadataSchema' =>
'metadatascheme',
'lifeCycle' =>
'lifecycle',
49 'otherPlatformRequirements' =>
'otherPlattformRequirements'
51 $name = $exceptions[$name] ?? $name;
55 $lang_key .=
'_plural';
57 return $this->utilities->txt($lang_key);
64 bool $skip_initial =
false
70 while (!$el->isRoot()) {
71 if ($el === $cut_off) {
74 if ($initial && $skip_initial) {
79 array_unshift($names, $this->name($el, $initial && $plural));
80 $el = $el->getSuperElement();
84 return $this->name($element, $plural);
86 return implode(self::SEPARATOR, $names);
91 $string = preg_replace(
'/(?<=[a-z])(?=[A-Z])/',
'_', $string);
92 return strtolower($string);