protected function renderInheritanceField(array $parameters)
{
$selector = '';
$onChange = 'onclick="if (confirm(TBE_EDITOR.labels.onChangeAlert)
&& TBE_EDITOR.checkSubmit(-1)){ TBE_EDITOR.submitForm() };"';
$pageIsSiteRoot = (bool) $parameters['row']['is_siteroot'];
$name = $parameters['itemFormElName'];
$value = $parameters['itemFormElValue'];
$typoScript = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
$settings = GeneralUtility::removeDotsFromTS((array) $typoScript['plugin.']['tx_fluidpages.']);
if (isset($settings['siteRootInheritance'])) {
$hideInheritFieldSiteRoot = 1 > $settings['siteRootInheritance'];
} else {
$hideInheritFieldSiteRoot = false;
}
$forceDisplayInheritSiteRoot = 'tx_fed_page_controller_action_sub' === $parameters['field'] && !$hideInheritFieldSiteRoot;
$forceHideInherit = (bool) (0 === intval($parameters['row']['pid']));
if (!$forceHideInherit) {
if (!$pageIsSiteRoot || $forceDisplayInheritSiteRoot || !$hideInheritFieldSiteRoot) {
$emptyLabel = LocalizationUtility::translate('pages.tx_fed_page_controller_action.default', 'Fluidpages');
$selected = empty($value) ? ' checked="checked" ' : null;
$selector .= '<label>';
$selector .= '<input type="radio" name="' . $name . '" ' . $onChange . '" value="" ' . $selected . '/> ' . $emptyLabel . LF;
$selector .= '</label>' . LF;
}
}
return $selector;
}