original_string: public static function view_entries($filters = array()) {
  
          $warnings = array();
          $params = self::validate_parameters(self::view_entries_parameters(), array('filters' => $filters));
  
          list($context, $filters, $courseid, $userid) = self::validate_access_and_filters($params['filters']);
  
          $eventparams = array(
              'other' => array('entryid' => $filters['entryid'], 'tagid' => $filters['tagid'], 'userid' => $userid,
                  'modid' => $filters['cmid'], 'groupid' => $filters['groupid'], 'search' => $filters['search']
              )
          );
          if (!empty($userid)) {
              $eventparams['relateduserid'] = $userid;
          }
          $eventparams['other']['courseid'] = ($courseid === SITEID) ? 0 : $courseid;
          $event = \core\event\blog_entries_viewed::create($eventparams);
          $event->trigger();
  
          return array(
              'warnings' => $warnings,
              'status' => true,
          );
      }
code: public static function view_entries($filters = array()) {
  
          $warnings = array();
          $params = self::validate_parameters(self::view_entries_parameters(), array('filters' => $filters));
  
          list($context, $filters, $courseid, $userid) = self::validate_access_and_filters($params['filters']);
  
          $eventparams = array(
              'other' => array('entryid' => $filters['entryid'], 'tagid' => $filters['tagid'], 'userid' => $userid,
                  'modid' => $filters['cmid'], 'groupid' => $filters['groupid'], 'search' => $filters['search']
              )
          );
          if (!empty($userid)) {
              $eventparams['relateduserid'] = $userid;
          }
          $eventparams['other']['courseid'] = ($courseid === SITEID) ? 0 : $courseid;
          $event = \core\event\blog_entries_viewed::create($eventparams);
          $event->trigger();
  
          return array(
              'warnings' => $warnings,
              'status' => true,
          );
      }
code_tokens: public static function view_entries ( $ filters = array ( ) ) { $ warnings = array ( ) ; $ params = self :: validate_parameters ( self :: view_entries_parameters ( ) , array ( 'filters' => $ filters ) ) ; list ( $ context , $ filters , $ courseid , $ userid ) = self :: validate_access_and_filters ( $ params [ 'filters' ] ) ; $ eventparams = array ( 'other' => array ( 'entryid' => $ filters [ 'entryid' ] , 'tagid' => $ filters [ 'tagid' ] , 'userid' => $ userid , 'modid' => $ filters [ 'cmid' ] , 'groupid' => $ filters [ 'groupid' ] , 'search' => $ filters [ 'search' ] ) ) ; if ( ! empty ( $ userid ) ) { $ eventparams [ 'relateduserid' ] = $ userid ; } $ eventparams [ 'other' ] [ 'courseid' ] = ( $ courseid === SITEID ) ? 0 : $ courseid ; $ event = \ core \ event \ blog_entries_viewed :: create ( $ eventparams ) ; $ event -> trigger ( ) ; return array ( 'warnings' => $ warnings , 'status' => true , ) ; }
docstring: Trigger the blog_entries_viewed event.
  
  @param array $filters the parameters used in the filter of get_entries
  @return array with status result and warnings
  @since  Moodle 3.6
docstring_tokens: Trigger the blog_entries_viewed event .