Added total cases to actors
This commit is contained in:
@ -10,6 +10,8 @@ use Drupal\Core\Entity\EntityChangedTrait;
|
||||
use Drupal\Core\Entity\EntityPublishedTrait;
|
||||
use Drupal\Core\Entity\EntityTypeInterface;
|
||||
use Drupal\user\UserInterface;
|
||||
use Drupal\opencase_entities\Entity\OCActor;
|
||||
use Error;
|
||||
|
||||
/**
|
||||
* Defines the Case Provision entity.
|
||||
@ -201,6 +203,10 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getProvider():?OCActor {
|
||||
return OCActor::load($this->oc_provider->target_id);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user