public function CartLinksValidatorInterface::isValidSyntax in Ubercart 8.4
Tests a string containing a Cart Link to see if it is syntactically valid.
Parameters
string $link: String containing a Cart Link.
bool $debug: Boolean flag to enable/disable debug output. Defaults to FALSE.
Return value
bool TRUE if valid, FALSE if not.
1 method overrides CartLinksValidatorInterface::isValidSyntax()
- CartLinksValidator::isValidSyntax in uc_cart_links/
src/ CartLinksValidator.php - Tests a string containing a Cart Link to see if it is syntactically valid.
File
- uc_cart_links/
src/ CartLinksValidatorInterface.php, line 21
Class
- CartLinksValidatorInterface
- Utility functions for dealing with Cart Links.
Namespace
Drupal\uc_cart_linksCode
public function isValidSyntax($link, $debug = FALSE);