validateContextProperties() protected method

protected validateContextProperties ( array $contextProperties ) : void
$contextProperties array
return void
 /**
  * @param array $contextProperties
  * @return void
  * @throws InvalidNodeContextException
  */
 protected function validateContextProperties($contextProperties)
 {
     parent::validateContextProperties($contextProperties);
     if (isset($contextProperties['currentSite'])) {
         if (!$contextProperties['currentSite'] instanceof Site) {
             throw new InvalidNodeContextException('You tried to set currentSite in the context and did not provide a \\Neos\\Neos\\Domain\\Model\\Site object as value.', 1373145297);
         }
     }
     if (isset($contextProperties['currentDomain'])) {
         if (!$contextProperties['currentDomain'] instanceof Domain) {
             throw new InvalidNodeContextException('You tried to set currentDomain in the context and did not provide a \\Neos\\Neos\\Domain\\Model\\Domain object as value.', 1373145384);
         }
     }
 }