widgets/IconChooser.php
private function getIcon() {

		// Provided name will override
		if( isset( $this->model ) ) {

			$icon = $this->attribute;

			if( isset( $this->model->$icon ) ) {

				return $this->model->$icon;
			}
		}

		if( isset( $this->icon ) ) {

			return $this->icon;
		}

		return $this->default;
	}
private function getIcon() {

		// Provided name will override
		if( isset( $this->model ) ) {

			$icon = $this->attribute;

			if( isset( $this->model->$icon ) ) {

				return $this->model->$icon;
			}
		}

		if( isset( $this->icon ) ) {

			return $this->icon;
		}

		return $this->default;
	}
private function getIcon ( ) { // Provided name will override if ( isset ( $ this -> model ) ) { $ icon = $ this -> attribute ; if ( isset ( $ this -> model -> $ icon ) ) { return $ this -> model -> $ icon ; } } if ( isset ( $ this -> icon ) ) { return $ this -> icon ; } return $ this -> default ; }
Return the icon to be displayed.

@return string
Return the icon to be displayed .