src/Subjects/BunchSubject.php
public function getDisplayModeByValue($displayMode)
    {

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

        // throw an exception, if not
        throw new \Exception(sprintf('Found invalid display mode %s', $displayMode));
    }
public function getDisplayModeByValue($displayMode)
    {

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

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

@param string $displayMode The display mode string to return the key for

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