original_string: public function validate(Validator $validator)
      {
          $handler = $this->get('metadata')->get('handler');
          if (class_exists($handler)) {
              $handler = new $handler();
  
              return $handler->validate($this, $validator);
          }
      }
code: public function validate(Validator $validator)
      {
          $handler = $this->get('metadata')->get('handler');
          if (class_exists($handler)) {
              $handler = new $handler();
  
              return $handler->validate($this, $validator);
          }
      }
code_tokens: public function validate ( Validator $ validator ) { $ handler = $ this -> get ( 'metadata' ) -> get ( 'handler' ) ; if ( class_exists ( $ handler ) ) { $ handler = new $ handler ( ) ; return $ handler -> validate ( $ this , $ validator ) ; } }
docstring: Triggers entity's validate callback.
  
  @param \Cake\Validation\Validator $validator The validator object to be
  altered.
  @return bool|null
docstring_tokens: Triggers entity s validate callback .