Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
40 public function createNewEntity($entity_type_id, $bundle, $label, $uid) { | 40 public function createNewEntity($entity_type_id, $bundle, $label, $uid) { |
41 $node = parent::createNewEntity($entity_type_id, $bundle, $label, $uid); | 41 $node = parent::createNewEntity($entity_type_id, $bundle, $label, $uid); |
42 | 42 |
43 // In order to create a referenceable node, it needs to published. | 43 // In order to create a referenceable node, it needs to published. |
44 /** @var \Drupal\node\NodeInterface $node */ | 44 /** @var \Drupal\node\NodeInterface $node */ |
45 $node->setPublished(TRUE); | 45 $node->setPublished(); |
46 | 46 |
47 return $node; | 47 return $node; |
48 } | 48 } |
49 | 49 |
50 /** | 50 /** |