Skip to content

Commit 1f80a46

Browse files
committed
Fix setStatus() to resolve #22
1 parent beb31d3 commit 1f80a46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/d8/module/content-entity/src/Entity/Example.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class {{ class_prefix }} extends {% if revisionable %}Revisionable{% endif %}Con
153153
* {@inheritdoc}
154154
*/
155155
public function setStatus($status) {
156-
$this->set('promote', $status);
156+
$this->set('status', $status);
157157
return $this;
158158
}
159159

tests/dcg/Generator/Drupal_8/Module/_content_entity/src/Entity/Example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function isEnabled() {
9898
* {@inheritdoc}
9999
*/
100100
public function setStatus($status) {
101-
$this->set('promote', $status);
101+
$this->set('status', $status);
102102
return $this;
103103
}
104104

0 commit comments

Comments
 (0)