private function is_disabled( $component )
    {
        return 
            $component instanceof DisableableComponentInterface &&
            (
                true === $component->disabled ||
                true === $component->readonly
            );
    }
private function is_disabled( $component )
    {
        return 
            $component instanceof DisableableComponentInterface &&
            (
                true === $component->disabled ||
                true === $component->readonly
            );
    }
private function is_disabled ( $ component ) { return $ component instanceof DisableableComponentInterface && ( true === $ component -> disabled || true === $ component -> readonly ) ; }
Check if the given component is disabled.

@param UI\AbstractComponent $component
@return boolean
Check if the given component is disabled .