Beispiel #1
0
 /**
  * @param Context $context
  * @param CurrentPath $currentPath
  * @return bool
  */
 public function shouldInclude(Context $context, CurrentPath $currentPath)
 {
     $contextVisible = $context->shouldShowField($currentPath);
     if ($contextVisible !== null) {
         return $contextVisible && $this->isVisible($context->getAction());
     }
     return $this->hasAction($context->getAction());
 }