public function getPropertyValue($varName, $defaultValue = null)
    {
        return $this->getProperty($varName) ? $this->getProperty($varName)->getValue() : $defaultValue;
    }
public function getPropertyValue($varName, $defaultValue = null)
    {
        return $this->getProperty($varName) ? $this->getProperty($varName)->getValue() : $defaultValue;
    }
public function getPropertyValue ( $ varName , $ defaultValue = null ) { return $ this -> getProperty ( $ varName ) ? $ this -> getProperty ( $ varName ) -> getValue ( ) : $ defaultValue ; }
Get the value of a Property Object.

Compared to {{luya\cms\menu\Item::getProperty}} this method returns only the value for a given property. If the
property is not assigned for the current Menu Item the $defaultValue will be returned, which is null by default.

@param string $varName The variable name of the property defined in the method {{luya\\admin\base\Property::varName}}
@param mixed $defaultValue The default value which will be returned if the property is not set for the current page.
@return string|mixed Returns the value of {{luya\admin\base\Property::getValue}} if set, otherwise $defaultValue.
Get the value of a Property Object .