Networking\InitCmsBundle\Admin\Entity\PageAdmin::getLastEditedBy PHP Method

getLastEditedBy() public method

public getLastEditedBy ( ) : mixed
return mixed
    public function getLastEditedBy()
    {
        $loggableClass = 'Gedmo\\Loggable\\Entity\\LogEntry';
        /** @var \Gedmo\Loggable\Entity\Repository\LogEntryRepository  $repo */
        $repo = $this->getModelManager()->getEntityManager($this->getClass())->getRepository($loggableClass);
        $logEntries = $repo->getLogEntries($this->subject);
        return array_shift($logEntries);
    }