original_string: protected function evalFormContext($mode = 'manage', $exists = false)
      {
          $config = $this->config->{$mode} ?? [];
  
          if (($context = array_get($config, 'context')) && is_array($context)) {
              $context = $exists
                  ? array_get($context, 'update')
                  : array_get($context, 'create');
          }
  
          if (!$context) {
              $context = $exists ? 'update' : 'create';
          }
  
          return $context;
      }
code: protected function evalFormContext($mode = 'manage', $exists = false)
      {
          $config = $this->config->{$mode} ?? [];
  
          if (($context = array_get($config, 'context')) && is_array($context)) {
              $context = $exists
                  ? array_get($context, 'update')
                  : array_get($context, 'create');
          }
  
          if (!$context) {
              $context = $exists ? 'update' : 'create';
          }
  
          return $context;
      }
code_tokens: protected function evalFormContext ( $ mode = 'manage' , $ exists = false ) { $ config = $ this -> config -> { $ mode } ?? [ ] ; if ( ( $ context = array_get ( $ config , 'context' ) ) && is_array ( $ context ) ) { $ context = $ exists ? array_get ( $ context , 'update' ) : array_get ( $ context , 'create' ) ; } if ( ! $ context ) { $ context = $ exists ? 'update' : 'create' ; } return $ context ; }
docstring: Determine supplied form context.
docstring_tokens: Determine supplied form context .