Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Repository/CodeEvent.php
<?php

namespace XF\Repository;

use
XF\Mvc\Entity\Finder;
use
XF\Mvc\Entity\Repository;

class
CodeEvent extends Repository
{
   
/**
     * @return Finder
     */
   
public function findEventsForList()
    {
        return
$this->finder('XF:CodeEvent')->order(['event_id']);
    }

    public function
getEventTitlePairs()
    {
        return
$this->findEventsForList()
            ->
fetch()
            ->
pluckNamed('event_id', 'event_id');
    }
}