Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE)
 {
     if ($operation == "update" || $operation == "delete") {
         $info = $this->getPluginDefinition();
         if ($info['locked']) {
             return false;
         }
     }
     return parent::access($operation, $account, $return_as_object);
 }