How can I check from a plugin config file if devMode is enabled? Using the Pixel &amp; Tonic Contact Form plugin, I added a config file (config/contactform.php) to override plugin settings from the CP.

I would like to change some settings if devMode is enabled : recipients from the contact form plugin, to separate my tests addresses from my client addresses.

&lt;?php

$recipients = array(
    'devMode' =&gt; 'example@domain.com,example@domain.com',
    'prodMode' =&gt; 'john@doe.com,jean@dupont.com'
);

if (devMode == true) {
    $recipients = $recipients['devMode'];
} else {
    $recipients = $recipients['prodMode'];
}

return array(
    'toEmail' =&gt; ($recipients ?: null),


How can I check if devMode == true? Can I access to this value using craft()-&gt;config or something else that?
For those coming here using Craft 3, it's now Craft::$app-&gt;getConfig()-&gt;general-&gt;devMode.