You are here

public function SeedsManager::getDirection in Seeds Toolbar 8

Get current language direction.

File

src/SeedsManager.php, line 121

Class

SeedsManager
Helper function for SeedsToolbar.

Namespace

Drupal\seeds_toolbar

Code

public function getDirection() {
  $dir = $this->languageManager
    ->getCurrentLanguage()
    ->getDirection();
  return $dir == 'ltr' ? 'left' : 'right';
}