original_string: protected function resolveValue($name, $variables)
      {
          if (!empty($variables)) {
              foreach ($variables as $container => $vars) {
                  foreach ($vars as $subname => $var) {
                      $value = $var['value'];
  
                      if(is_callable($value) && $var['name'] === $name) {
                          return $value($this->variables);
                      }
  
                      if (isset($var['name']) and $name == $value and isset($value)) {
                          return $value;
                      }
                      elseif (!isset($var['name']) and $subname == $name and isset($value)) {
                          return $value;
                      }
                  }
              }
          }
  
          if (!isset($variables[$name])) {
              return false;
          }
  
          if (isset($variable['dataProvider'])) {
              $value = $this->resolveDataProviderValue($variable['dataProvider']);
              if (!$value) {
                  return false;
              }
              return $value;
          }
  
          return array_get($variable, 'value', '');
      }
code: protected function resolveValue($name, $variables)
      {
          if (!empty($variables)) {
              foreach ($variables as $container => $vars) {
                  foreach ($vars as $subname => $var) {
                      $value = $var['value'];
  
                      if(is_callable($value) && $var['name'] === $name) {
                          return $value($this->variables);
                      }
  
                      if (isset($var['name']) and $name == $value and isset($value)) {
                          return $value;
                      }
                      elseif (!isset($var['name']) and $subname == $name and isset($value)) {
                          return $value;
                      }
                  }
              }
          }
  
          if (!isset($variables[$name])) {
              return false;
          }
  
          if (isset($variable['dataProvider'])) {
              $value = $this->resolveDataProviderValue($variable['dataProvider']);
              if (!$value) {
                  return false;
              }
              return $value;
          }
  
          return array_get($variable, 'value', '');
      }
code_tokens: protected function resolveValue ( $ name , $ variables ) { if ( ! empty ( $ variables ) ) { foreach ( $ variables as $ container => $ vars ) { foreach ( $ vars as $ subname => $ var ) { $ value = $ var [ 'value' ] ; if ( is_callable ( $ value ) && $ var [ 'name' ] === $ name ) { return $ value ( $ this -> variables ) ; } if ( isset ( $ var [ 'name' ] ) and $ name == $ value and isset ( $ value ) ) { return $ value ; } elseif ( ! isset ( $ var [ 'name' ] ) and $ subname == $ name and isset ( $ value ) ) { return $ value ; } } } } if ( ! isset ( $ variables [ $ name ] ) ) { return false ; } if ( isset ( $ variable [ 'dataProvider' ] ) ) { $ value = $ this -> resolveDataProviderValue ( $ variable [ 'dataProvider' ] ) ; if ( ! $ value ) { return false ; } return $ value ; } return array_get ( $ variable , 'value' , '' ) ; }
docstring: resolve notification variable value
  
  @param String $name
  @param array $variables
  @return mixed
docstring_tokens: resolve notification variable value