You are here

protected function CartLinkToken::getHashSalt in Commerce Add To Cart Link 2.x

Gets a salt useful for hardening against SQL injection.

Return value

string A salt based on information in settings.php, not in the database.

Throws

\RuntimeException

1 call to CartLinkToken::getHashSalt()
CartLinkToken::generate in src/CartLinkToken.php
Generates a token for the given product variation.

File

src/CartLinkToken.php, line 111

Class

CartLinkToken
Default cart link token service implementation.

Namespace

Drupal\commerce_add_to_cart_link

Code

protected function getHashSalt() {
  return Settings::getHashSalt();
}