WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

The import failed due to the following reasons: These entities need to be deleted before importing.

Submitted by barnettech on Tue, 04/09/2019 - 10:04

The import failed due to the following reasons:
Entities exist of type Taxonomy term
and Vocabulary er">Complinet Titles. These entities need to be deleted befo
re importing.
Entities exist of type Taxonomy term
and Vocabulary er">Complinet Rules. These entities need to be deleted befor
e importing.

Write to watchdog in Drupal 8

Submitted by barnettech on Tue, 03/12/2019 - 18:35


\Drupal::logger('my_module')->error($message);

\Drupal::logger('my_module')->notice($message);

\Drupal::logger('content_entity_example')->notice('@type: deleted %title.',
array(
'@type' => $this->entity->bundle(),
'%title' => $this->entity->label(),
));