public function setDisplayType()
    {
        $file_manager = $this->getFileManager();

        /** @var Session $session */
        $session = $this->container->get('session');
        $display_type = $session->get(self::DISPLAY_TYPE_SESSION);

        if ($this->container->get('request')->get('display_type') != null) {
            $display_type = $this->container->get('request')->get('display_type');
            $session->set(self::DISPLAY_TYPE_SESSION, $display_type);
        } else {
            if (is_null($display_type)) {
                $display_type = self::DISPLAY_TYPE_BLOCK;
            }
        }

        $file_body_display = $display_type !== null ? $display_type : self::DISPLAY_TYPE_BLOCK;

        $file_manager->setDisplayType($file_body_display);
    }
public function setDisplayType()
    {
        $file_manager = $this->getFileManager();

        /** @var Session $session */
        $session = $this->container->get('session');
        $display_type = $session->get(self::DISPLAY_TYPE_SESSION);

        if ($this->container->get('request')->get('display_type') != null) {
            $display_type = $this->container->get('request')->get('display_type');
            $session->set(self::DISPLAY_TYPE_SESSION, $display_type);
        } else {
            if (is_null($display_type)) {
                $display_type = self::DISPLAY_TYPE_BLOCK;
            }
        }

        $file_body_display = $display_type !== null ? $display_type : self::DISPLAY_TYPE_BLOCK;

        $file_manager->setDisplayType($file_body_display);
    }
public function setDisplayType ( ) { $ file_manager = $ this -> getFileManager ( ) ; /** @var Session $session */ $ session = $ this -> container -> get ( 'session' ) ; $ display_type = $ session -> get ( self :: DISPLAY_TYPE_SESSION ) ; if ( $ this -> container -> get ( 'request' ) -> get ( 'display_type' ) != null ) { $ display_type = $ this -> container -> get ( 'request' ) -> get ( 'display_type' ) ; $ session -> set ( self :: DISPLAY_TYPE_SESSION , $ display_type ) ; } else { if ( is_null ( $ display_type ) ) { $ display_type = self :: DISPLAY_TYPE_BLOCK ; } } $ file_body_display = $ display_type !== null ? $ display_type : self :: DISPLAY_TYPE_BLOCK ; $ file_manager -> setDisplayType ( $ file_body_display ) ; }
Set the display type

@return string
Set the display type