Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function extract($model)
 {
     if (!$this->reference->isPermitted(Entity::READ)) {
         return null;
     }
     return parent::extract($model);
 }
Exemplo n.º 2
0
 /**
  * @return bool
  */
 protected function isPermitted()
 {
     return $this->form->isPermitted($this->getAction());
 }