src/Contao/Event/Subscriber.php
private static function renderSimpleCheckbox(RenderReadablePropertyValueEvent $event, $property, $extra, $value)
    {
        if ((null !== $event->getRendered())
            || !(!$extra['multiple'] && ('checkbox' === $property->getWidgetType()))
        ) {
            return;
        }

        $map = [false => 'no', true => 'yes'];

        $event->setRendered($event->getEnvironment()->getTranslator()->translate('MSC.' . $map[(bool) $value]));
    }
private static function renderSimpleCheckbox(RenderReadablePropertyValueEvent $event, $property, $extra, $value)
    {
        if ((null !== $event->getRendered())
            || !(!$extra['multiple'] && ('checkbox' === $property->getWidgetType()))
        ) {
            return;
        }

        $map = [false => 'no', true => 'yes'];

        $event->setRendered($event->getEnvironment()->getTranslator()->translate('MSC.' . $map[(bool) $value]));
    }
private static function renderSimpleCheckbox ( RenderReadablePropertyValueEvent $ event , $ property , $ extra , $ value ) { if ( ( null !== $ event -> getRendered ( ) ) || ! ( ! $ extra [ 'multiple' ] && ( 'checkbox' === $ property -> getWidgetType ( ) ) ) ) { return ; } $ map = [ false => 'no' , true => 'yes' ] ; $ event -> setRendered ( $ event -> getEnvironment ( ) -> getTranslator ( ) -> translate ( 'MSC.' . $ map [ ( bool ) $ value ] ) ) ; }
Render for simple checkobx

@param RenderReadablePropertyValueEvent $event    The event to store the value to.
@param PropertyInterface                $property The property for render it.
@param array                            $extra    The extra data from the property.
@param int                              $value    The value to format.

@return void
Render for simple checkobx