core/web/Composition.php
public function getKey($key, $defaultValue = false)
    {
        $this->getKeys();
        
        return isset($this->_keys[$key]) ? $this->_keys[$key] : $defaultValue;
    }
public function getKey($key, $defaultValue = false)
    {
        $this->getKeys();
        
        return isset($this->_keys[$key]) ? $this->_keys[$key] : $defaultValue;
    }
public function getKey ( $ key , $ defaultValue = false ) { $ this -> getKeys ( ) ; return isset ( $ this -> _keys [ $ key ] ) ? $ this -> _keys [ $ key ] : $ defaultValue ; }
Get value from the composition array for the provided key, if the key does not existing the default value
will be return. The standard value of the defaultValue is false, so if nothing defined and the could not
be found, the return value is `false`.

@param string $key The key to find in the composition array e.g. langShortCode
@param string $defaultValue The default value if they could not be found
@return string|bool
Get value from the composition array for the provided key if the key does not existing the default value will be return . The standard value of the defaultValue is false so if nothing defined and the could not be found the return value is false .