src/Contao/View/Contao2BackendView/ContaoWidgetManager.php
protected function generateHelpText($property)
    {
        $propInfo   = $this->getEnvironment()->getDataDefinition()->getPropertiesDefinition()->getProperty($property);
        $label      = $propInfo->getDescription();
        $widgetType = $propInfo->getWidgetType();

        if (null === $label
            || ('password' === $widgetType)
            || !\is_string($label)
            || !$GLOBALS['TL_CONFIG']['showHelp']
        ) {
            return '';
        }

        return '<p class="tl_help tl_tip">' . $label . '</p>';
    }
protected function generateHelpText($property)
    {
        $propInfo   = $this->getEnvironment()->getDataDefinition()->getPropertiesDefinition()->getProperty($property);
        $label      = $propInfo->getDescription();
        $widgetType = $propInfo->getWidgetType();

        if (null === $label
            || ('password' === $widgetType)
            || !\is_string($label)
            || !$GLOBALS['TL_CONFIG']['showHelp']
        ) {
            return '';
        }

        return '<p class="tl_help tl_tip">' . $label . '</p>';
    }
protected function generateHelpText ( $ property ) { $ propInfo = $ this -> getEnvironment ( ) -> getDataDefinition ( ) -> getPropertiesDefinition ( ) -> getProperty ( $ property ) ; $ label = $ propInfo -> getDescription ( ) ; $ widgetType = $ propInfo -> getWidgetType ( ) ; if ( null === $ label || ( 'password' === $ widgetType ) || ! \ is_string ( $ label ) || ! $ GLOBALS [ 'TL_CONFIG' ] [ 'showHelp' ] ) { return '' ; } return '<p class="tl_help tl_tip">' . $ label . '</p>' ; }
Generate the help msg for a property.

@param string $property The name of the property.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Generate the help msg for a property .