Commit ea0ccd20 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #2351299: D8-port: Fixed errormessage when creating new entity.

parent 487909ca
Loading
Loading
Loading
Loading
+3 −3
Changes for src/Entity/WorkflowTransition.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
      $t_args = array(
        '%from_sid' => $this->getFromSid(),
        '%to_sid' => $this->getToSid(),
        'link' =>  $this->getEntity()->link(t('View')),
        'link' =>  ($entity->id()) ? $this->getEntity()->link(t('View')) : '',
      );
      \Drupal::logger('workflow')->error($message, $t_args);
    }
@@ -407,7 +407,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
      '%old' => $from_sid,
      '%new' => $to_sid,
      '%label' => $entity->label(),
// @todo      'link' =>  $this->getEntity()->link(t('View')),
      'link' =>  ($entity->id()) ? $this->getEntity()->link(t('View')) : '',
    );

    if (!$this->getFromState()) {
@@ -506,7 +506,7 @@ class WorkflowTransition extends ContentEntityBase implements WorkflowTransition
            '@type' => $entity_type_info->getLabel(),
            '%label' => $entity->label(),
            '%state_name' => t($new_state->label()), // @todo check_plain()?
            'link' =>  $this->getEntity()->link(t('View')),
            'link' =>  ($entity->id()) ? $this->getEntity()->link(t('View')) : '',
          );
          \Drupal::logger('workflow')->notice($message, $args);
        }