models/ExtensionQuery.php
public function enabled($enabled = true)
    {
        if (is_bool($enabled)) {
            return $this->andWhere(['enabled' => $enabled == true ? 1 : 0]);
        }
        return $this;
    }
public function enabled($enabled = true)
    {
        if (is_bool($enabled)) {
            return $this->andWhere(['enabled' => $enabled == true ? 1 : 0]);
        }
        return $this;
    }
public function enabled ( $ enabled = true ) { if ( is_bool ( $ enabled ) ) { return $ this -> andWhere ( [ 'enabled' => $ enabled == true ? 1 : 0 ] ) ; } return $ this ; }
Attach enabled condition.
@param mixed $enabled
@return \static
Attach enabled condition .