In a plugin, how to get entry status? This seems like it should be simple to find, but where does Craft store the status of entries (lightswitch for enabled/disabled)?  It doesn't seem to be a column in the entries table, and I can't figure out how the other tables are linked to the entry number.

Background: In a plug-in, I'm trying to filter a query to exclude only those that are disabled.
Is this Craft 2 or Craft 3?

There are a few of ways to get entries but basically you could do something like (Craft 3)

use craft\elements\Entry;

$entries = Entry::find()-&gt;status(null)-&gt;all();


To find all disabled entries.