src/CoreBundle/EventListener/DcGeneral/DefinitionBuilder/CommandBuilder.php
private function getChildModelCaption($metaModel, $screen)
    {
        $caption = [
            '',
            sprintf(
                $GLOBALS['TL_LANG']['MSC']['metamodel_edit_as_child']['label'],
                $metaModel->getName()
            )
        ];

        foreach ($screen['label'] as $langCode => $label) {
            if (!empty($label) && $langCode === $GLOBALS['TL_LANGUAGE']) {
                $caption = [
                    $screen['description'][$langCode],
                    $label
                ];
            }
        }

        return $caption;
    }
private function getChildModelCaption($metaModel, $screen)
    {
        $caption = [
            '',
            sprintf(
                $GLOBALS['TL_LANG']['MSC']['metamodel_edit_as_child']['label'],
                $metaModel->getName()
            )
        ];

        foreach ($screen['label'] as $langCode => $label) {
            if (!empty($label) && $langCode === $GLOBALS['TL_LANGUAGE']) {
                $caption = [
                    $screen['description'][$langCode],
                    $label
                ];
            }
        }

        return $caption;
    }
Create the caption text for the child model.

@param IMetaModel $metaModel The child model.
@param array      $screen    The input screen.

@return array

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)