src/Subjects/BunchSubject.php
public function getPageLayoutByValue($pageLayout)
    {

        // query whether or not, the requested display mode is available
        if (isset($this->availablePageLayouts[$pageLayout])) {
            return $this->availablePageLayouts[$pageLayout];
        }

        // throw an exception, if not
        throw new \Exception(printf('Found invalid page layout %s', $pageLayout));
    }
public function getPageLayoutByValue($pageLayout)
    {

        // query whether or not, the requested display mode is available
        if (isset($this->availablePageLayouts[$pageLayout])) {
            return $this->availablePageLayouts[$pageLayout];
        }

        // throw an exception, if not
        throw new \Exception(printf('Found invalid page layout %s', $pageLayout));
    }
public function getPageLayoutByValue ( $ pageLayout ) { // query whether or not, the requested display mode is available if ( isset ( $ this -> availablePageLayouts [ $ pageLayout ] ) ) { return $ this -> availablePageLayouts [ $ pageLayout ] ; } // throw an exception, if not throw new \ Exception ( printf ( 'Found invalid page layout %s' , $ pageLayout ) ) ; }
Return's the page layout for the passed page layout string.

@param string $pageLayout The page layout string to return the key for

@return integer The requested page layout
@throws \Exception Is thrown, if the requested page layout is not available
Return s the page layout for the passed page layout string .