Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 protected function requestCanBeHandled(EntityInterface $entity)
 {
     $blogRoute = Plugin::getConfig('blogRootBlockName');
     if ($entity instanceof Page && preg_match("/^({$blogRoute})(\\/|\$)/", $entity->getRoute())) {
         return parent::requestCanBeHandled($entity);
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 /**
  * Returns true if current resolver can process the request
  *
  * @param EntityInterface $entity
  * @return bool
  */
 protected function requestCanBeHandled(EntityInterface $entity)
 {
     return !$this->balcon->getResponseResolver() && $entity instanceof Page && $entity->isProcessed();
 }