You are here

public function SmartDateFormat::getSiteTimeToggle in Smart Date 3.3.x

Same name and namespace in other branches
  1. 3.0.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getSiteTimeToggle()
  2. 3.1.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getSiteTimeToggle()
  3. 3.2.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getSiteTimeToggle()
  4. 3.4.x src/Entity/SmartDateFormat.php \Drupal\smart_date\Entity\SmartDateFormat::getSiteTimeToggle()

File

src/Entity/SmartDateFormat.php, line 258

Class

SmartDateFormat
Defines the Smart date format entity.

Namespace

Drupal\smart_date\Entity

Code

public function getSiteTimeToggle() {
  return $this
    ->get('site_time_toggle')->value;
}