Commit 93a71a31 authored by mikran's avatar mikran Committed by RoSk0

Issue #2798611 by mikran: CRM Core entity label alter does not work.

parent 23728f38
......@@ -337,7 +337,7 @@ class Individual extends ContentEntityBase implements IndividualInterface {
if (empty(trim($label))) {
$label = t('Nameless #@id', ['@id' => $this->id()]);
}
\Drupal::moduleHandler()->alter('crm_core_individual_label', $label, $entity);
\Drupal::moduleHandler()->alter('crm_core_individual_label', $label, $this);
return $label;
}
......
......@@ -216,7 +216,7 @@ class Organization extends RevisionableContentEntityBase implements ContactInter
if (empty($label)) {
$label = t('Nameless #@id', ['@id' => $this->id()]);
}
\Drupal::moduleHandler()->alter('crm_core_organization_label', $label, $entity);
\Drupal::moduleHandler()->alter('crm_core_organization_label', $label, $this);
return $label;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment