Skip to content
Snippets Groups Projects
Commit dfc01baa authored by Paul Mrvik's avatar Paul Mrvik
Browse files

Issue #3494903 by globexplorer: Override Templates use label instead of machine name

parent f5b387db
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ final class OverrideDefaultNotificationTemplate extends FormBase {
$entities = \Drupal::entityTypeManager()->getStorage('conditional_notification')->loadMultiple($entity_ids);
if (isset($entities) && !empty($entities)) {
foreach ($entities as $entity) {
$label = $entity->id() . ' (' . $entity->getEntityActionType() . ')';
$label = $entity->label() . ' (' . $entity->getEntityActionType() . ')';
$existing_default_templates[$entity->id()] = ['id' => $label];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment