src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php
private function isGetOptionsAllowed(PropertyInterface $property): bool
    {
        $propExtra = $property->getExtra();

        // Check the overwrite param.
        if (\is_array($propExtra)
            && \array_key_exists('fetchOptions', $propExtra)
            && (true === $propExtra['fetchOptions'])
        ) {
            return true;
        }

        // Check the class.
        if ('checkbox' !== $property->getWidgetType()) {
            return true;
        }

        // Check if multiple is active.
        return \array_key_exists('multiple', $propExtra) && (true === $propExtra['multiple']);
    }
private function isGetOptionsAllowed(PropertyInterface $property): bool
    {
        $propExtra = $property->getExtra();

        // Check the overwrite param.
        if (\is_array($propExtra)
            && \array_key_exists('fetchOptions', $propExtra)
            && (true === $propExtra['fetchOptions'])
        ) {
            return true;
        }

        // Check the class.
        if ('checkbox' !== $property->getWidgetType()) {
            return true;
        }

        // Check if multiple is active.
        return \array_key_exists('multiple', $propExtra) && (true === $propExtra['multiple']);
    }
private function isGetOptionsAllowed ( PropertyInterface $ property ) : bool { $ propExtra = $ property -> getExtra ( ) ; // Check the overwrite param. if ( \ is_array ( $ propExtra ) && \ array_key_exists ( 'fetchOptions' , $ propExtra ) && ( true === $ propExtra [ 'fetchOptions' ] ) ) { return true ; } // Check the class. if ( 'checkbox' !== $ property -> getWidgetType ( ) ) { return true ; } // Check if multiple is active. return \ array_key_exists ( 'multiple' , $ propExtra ) && ( true === $ propExtra [ 'multiple' ] ) ; }
Check if the current widget is allowed to get options.

@param PropertyInterface $property The bag with all information.

@return bool True => allowed to get options | False => doesn't get options.
Check if the current widget is allowed to get options .