module/Paragraph/src/Grid/Paragraph/Model/Log/Structure/ContentView.php
public function getDescription()
    {
        if ( empty( $this->paragraphId ) )
        {
            return '';
        }

        $model  = $this->getServiceLocator()
                       ->get( 'Grid\Paragraph\Model\Paragraph\Model' );
        $locale = $model->getLocale();
        $model->setLocale( $this->locale );
        $content = $model->find( $this->paragraphId );
        $model->setLocale( $locale );

        if ( empty( $content ) )
        {
            return $this->originalTitle;
        }
        else if ( ! empty( $content->title ) )
        {
            return $content->title;
        }
        else if ( ! empty( $content->name ) )
        {
            return $content->name;
        }
        else
        {
            return $this->originalTitle;
        }
    }
public function getDescription()
    {
        if ( empty( $this->paragraphId ) )
        {
            return '';
        }

        $model  = $this->getServiceLocator()
                       ->get( 'Grid\Paragraph\Model\Paragraph\Model' );
        $locale = $model->getLocale();
        $model->setLocale( $this->locale );
        $content = $model->find( $this->paragraphId );
        $model->setLocale( $locale );

        if ( empty( $content ) )
        {
            return $this->originalTitle;
        }
        else if ( ! empty( $content->title ) )
        {
            return $content->title;
        }
        else if ( ! empty( $content->name ) )
        {
            return $content->name;
        }
        else
        {
            return $this->originalTitle;
        }
    }
public function getDescription ( ) { if ( empty ( $ this -> paragraphId ) ) { return '' ; } $ model = $ this -> getServiceLocator ( ) -> get ( 'Grid\Paragraph\Model\Paragraph\Model' ) ; $ locale = $ model -> getLocale ( ) ; $ model -> setLocale ( $ this -> locale ) ; $ content = $ model -> find ( $ this -> paragraphId ) ; $ model -> setLocale ( $ locale ) ; if ( empty ( $ content ) ) { return $ this -> originalTitle ; } else if ( ! empty ( $ content -> title ) ) { return $ content -> title ; } else if ( ! empty ( $ content -> name ) ) { return $ content -> name ; } else { return $ this -> originalTitle ; } }
Get description for this log-event

@return string
Get description for this log - event