public function StringBase::hasLocation

Implements Drupal\locale\StringInterface::hasLocation().

Overrides StringInterface::hasLocation

File

drupal/core/modules/locale/lib/Drupal/locale/StringBase.php, line 178
Definition of Drupal\locale\StringBase.

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function hasLocation($type, $name) {
  $locations = $this
    ->getLocations();
  return isset($locations[$type]) ? !empty($locations[$type][$name]) : FALSE;
}