Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CookiePathValidator.php
Go to the documentation of this file.
1 <?php
8 
9 class CookiePathValidator extends \Magento\Framework\Validator\AbstractValidator
10 {
14  public function isValid($value)
15  {
16  $this->_clearMessages();
17  $test = parse_url($value, PHP_URL_PATH);
18  if ($test != $value || '/' != $test[0]) {
19  return false;
20  }
21  return true;
22  }
23 }
$value
Definition: gender.phtml:16