Determines whether the element is enabled or not.

@return Boolean: whether the element is enabled or not
976990
public boolean enabled() {
        boolean isEnabled = false;
        try {
            // adding additional check for disabled attribute, due to issues with safari
            isEnabled = (element.getWebElement().isEnabled() && !element.get().allAttributes().containsKey("disabled"));
        } catch (NullPointerException | NoSuchElementException e) {
            // Null pointer means the element was deleted, and there has no attributes. No such element means the same thing
            log.info(e);
        }
        return isEnabled;
    }
225450
public function isDisabled()
    {
        // Disable (if no enabled buttons):
        
        if (!$this->getEnabledButtons()->exists()) {
            return true;
        }
        
        // Disable (if no current page):
        
        if (!($page = $this->getCurrentPage(Page::class))) {
            return true;
        }
        
        // Disable (if disabled for page class):
        
        if (in_array(get_class($page), $this->config()->disabled_on)) {
            return true;
        }
        
        // Enable (if sharing is not disabled for page):
        
        return !$page->isSharingDisabled() ? parent::isDisabled() : true;
    }
463920
public function is_disabled() {
        $lockedgrade = $lockedgradeitem = 0;
        if (!empty($this->grade->locked)) {
            $lockedgrade = 1;
        }
        if (!empty($this->grade->grade_item->locked)) {
            $lockedgradeitem = 1;
        }
        return ($lockedgrade || $lockedgradeitem);
    }
1008895
public function IsEnabled($Name) {
      $Enabled = $this->EnabledPlugins;
      return isset($Enabled[$Name]) && $Enabled[$Name];
   }
1101943
public static function is_enabled() {
        global $CFG;

        // Check whether Inbound Message is enabled at all.
        if (!isset($CFG->messageinbound_enabled) || !$CFG->messageinbound_enabled) {
            return false;
        }

        // Check whether the outgoing mailbox and domain are configured properly.
        if (!isset($CFG->messageinbound_mailbox) || empty($CFG->messageinbound_mailbox)) {
            return false;
        }

        if (!isset($CFG->messageinbound_domain) || empty($CFG->messageinbound_domain)) {
            return false;
        }

        return true;
    }
1187516
protected function _isFilterEnabled()
    {
        if (!isset($this->controller->filterFields)) {
            return false;
        }

        foreach ($this->controller->filterFields as $field) {
            if (isset($field['actions']) &&
                is_array($field['actions']) &&
                in_array($this->action, $field['actions'])
            ) {
                return true;
            }
        }

        return false;
    }
289371
public function isEnabled()
    {
        $isEnabled = (bool) Config::getInstance()->General['enable_update_communication'];

        if($isEnabled === true && SettingsPiwik::isInternetEnabled() === true){
            return true;
        }
        
        return false;
    }
400755
public static function isEnabled()
    {
        $property = App::$Properties->get('debug');
        // $_COOKIE used insted of symfony request, cuz debug initialize early
        return ($property['all'] === true || $_COOKIE[$property['cookie']['key']] === $property['cookie']['value']);
    }
1143158
function isEnabled (obj) {
  var enabled = false
  if (obj.isEnumType) {
    enabled = !this.theme.enums.hide
  } else if (obj.isInputType) {
    enabled = !this.theme.inputs.hide
  } else if (obj.isInterfaceType) {
    enabled = !this.theme.interfaces.hide
  } else if (obj.isUnionType) {
    enabled = !this.theme.unions.hide
  } else {
    enabled = true
  }
  return enabled
}
1036277
public function enabled() {
    $config = $this->config->get('social_lets_connect_usage.settings');
    $usage_data_settings = $config->get('usage_data');

    $plugin_definition = $this->getPluginDefinition();
    if (in_array($plugin_definition['setting'], $usage_data_settings)) {
      return TRUE;
    }
    return FALSE;
  }
967417
static function isExecutionEnabled()
    {
        if ( isset( $GLOBALS['eZTemplateCompilerSettings']['execution'] ) and
             $GLOBALS['eZTemplateCompilerSettings']['execution'] !== null )
        {
            return $GLOBALS['eZTemplateCompilerSettings']['execution'];
        }

        $ini = eZINI::instance();
        $execution = $ini->variable( 'TemplateSettings', 'CompileExecution' ) == 'enabled';
        return $execution;
    }
756302
@Override
	public boolean isEnabled() throws WidgetException {
		try {
			return getWebElement().isEnabled();
		} catch (Exception e) {
			throw new WidgetException(
					"Error while determing whether element is enabled",
					getByLocator(), e);
		}
	}
793648
def enabled(self):
        """"""
        enabled = self._enabled
        if not enabled:
            return False

        if self.parent and isinstance(self.parent, Widget):
            if self.parent.enabled == False:
                return False

        return True
732641
public function isEnabled() {
        $status = $this->_scopeConfig->getValue('payment/pagseguro/installments');
        return (! is_null($status) && $status == 1) ? true : false;
    }
137492
public function isEnabled()
    {
        if ($this->enabled === null) {
            $environments  = config('songshenzong-log.env', ['dev', 'local', 'production']);
            $this->enabled = in_array(env('APP_ENV'), $environments, true);
        }

        return $this->enabled;
    }
26449
public function isEnabled()
    {
        if (null !== $this->getRequireRouteName())
        {
            if ($this->getInvertRequireRouteName() XOR ($this->getCurrentRouteName() != $this->getRequireRouteName()))
            {
                return false;
            }
        }

        return $this->enabledIfRoleMissing || $this->userHasRequiredRole();
    }
875461
public function UserEnabledCheck()
    {
        $user = Auth::user()->where('email', '=', Auth::user()->email )->get()->first();

        if ( $user ) {
            return $user->enabled;
        } else {
            return false;
        }
    }