src/Controller/EntityViewMethods.php
public function show($entityId = 0)
    {
        $entityId = StaticFilter::filter('text', $entityId);
        $entity = null;
        try {
            $entity = $this->getEntity($entityId);
            $this->set($this->getEntityNameSingular(), $entity);
        } catch (EntityNotFoundException $caught) {
            Log::logger()->addNotice($caught->getMessage());
            $this->addWarningMessage(
                $this->getMissingEntityMessage($entityId)
            );
            $this->redirectFromMissingEntity();
        }
        return $entity;
    }
public function show($entityId = 0)
    {
        $entityId = StaticFilter::filter('text', $entityId);
        $entity = null;
        try {
            $entity = $this->getEntity($entityId);
            $this->set($this->getEntityNameSingular(), $entity);
        } catch (EntityNotFoundException $caught) {
            Log::logger()->addNotice($caught->getMessage());
            $this->addWarningMessage(
                $this->getMissingEntityMessage($entityId)
            );
            $this->redirectFromMissingEntity();
        }
        return $entity;
    }
public function show ( $ entityId = 0 ) { $ entityId = StaticFilter :: filter ( 'text' , $ entityId ) ; $ entity = null ; try { $ entity = $ this -> getEntity ( $ entityId ) ; $ this -> set ( $ this -> getEntityNameSingular ( ) , $ entity ) ; } catch ( EntityNotFoundException $ caught ) { Log :: logger ( ) -> addNotice ( $ caught -> getMessage ( ) ) ; $ this -> addWarningMessage ( $ this -> getMissingEntityMessage ( $ entityId ) ) ; $ this -> redirectFromMissingEntity ( ) ; } return $ entity ; }
Handles the request to view an entity

@param int $entityId

@return null|EntityInterface
Handles the request to view an entity