* @ConfigEntityType(
* id = "node_type",
* label = @Translation("Content type"),
+ * label_collection = @Translation("Content types"),
+ * label_singular = @Translation("content type"),
+ * label_plural = @Translation("content types"),
+ * label_count = @PluralTranslation(
+ * singular = "@count content type",
+ * plural = "@count content types",
+ * ),
* handlers = {
* "access" = "Drupal\node\NodeTypeAccessControlHandler",
* "form" = {
if ($update && $this->getOriginalId() != $this->id()) {
$update_count = node_type_update_nodes($this->getOriginalId(), $this->id());
if ($update_count) {
- drupal_set_message(\Drupal::translation()->formatPlural($update_count,
+ \Drupal::messenger()->addStatus(\Drupal::translation()->formatPlural($update_count,
'Changed the content type of 1 post from %old-type to %type.',
'Changed the content type of @count posts from %old-type to %type.',
[