Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Text.php
Go to the documentation of this file.
1 <?php
7 
8 use Braintree\TextNode;
9 
13 class Text implements ApplierInterface
14 {
23  public function apply($field, $condition, $value)
24  {
25  $result = false;
26 
27  $value = trim($value, "% \r\n\t");
28  switch ($condition) {
30  $field->is($value);
31  $result = true;
32  break;
34  $field->contains($value);
35  $result = true;
36  break;
37  }
38 
39  return $result;
40  }
41 }
$value
Definition: gender.phtml:16