You are here

public function Timezone::getName in Geo Time Zone 7

Same name and namespace in other branches
  1. 8 src/Timezone.php \Drupal\geotimezone\Timezone::getName()
  2. 6 src/Timezone.php \Drupal\geotimezone\Timezone::getName()

Get the timezone name.

Return value

string Timezone name.

File

src/Timezone.php, line 47
Contains \Drupal\geotimezone\Timezone.

Class

Timezone
Holds the list of timezone names and offset.

Namespace

Drupal\geotimezone

Code

public function getName() {
  return static::$list[$this->index]['name'];
}