original_string: public function onHideBackendHint()
      {
          if (!$name = post('name')) {
              throw new ApplicationException('Missing a hint name.');
          }
  
          $preferences = UserPreference::forUser();
          $hiddenHints = $preferences->get('backend::hints.hidden', []);
          $hiddenHints[$name] = 1;
  
          $preferences->set('backend::hints.hidden', $hiddenHints);
      }
code: public function onHideBackendHint()
      {
          if (!$name = post('name')) {
              throw new ApplicationException('Missing a hint name.');
          }
  
          $preferences = UserPreference::forUser();
          $hiddenHints = $preferences->get('backend::hints.hidden', []);
          $hiddenHints[$name] = 1;
  
          $preferences->set('backend::hints.hidden', $hiddenHints);
      }
code_tokens: public function onHideBackendHint ( ) { if ( ! $ name = post ( 'name' ) ) { throw new ApplicationException ( 'Missing a hint name.' ) ; } $ preferences = UserPreference :: forUser ( ) ; $ hiddenHints = $ preferences -> get ( 'backend::hints.hidden' , [ ] ) ; $ hiddenHints [ $ name ] = 1 ; $ preferences -> set ( 'backend::hints.hidden' , $ hiddenHints ) ; }
docstring: Ajax handler to hide a backend hint, once hidden the partial
  will no longer display for the user.
  @return void
docstring_tokens: Ajax handler to hide a backend hint once hidden the partial will no longer display for the user .