public function SplashifyGroupEntity::setPublished in Splashify 8.2
Sets the published status of a Splashify group entity.
Parameters
bool $published: TRUE to set this Splashify group entity to published, FALSE to set it to unpublished.
Return value
\Drupal\splashify\Entity\SplashifyGroupEntityInterface The called Splashify group entity entity.
Overrides SplashifyGroupEntityInterface::setPublished
File
- src/
Entity/ SplashifyGroupEntity.php, line 139
Class
- SplashifyGroupEntity
- Defines the Splashify group entity entity.
Namespace
Drupal\splashify\EntityCode
public function setPublished($published) {
$this
->set('status', $published ? NODE_PUBLISHED : NODE_NOT_PUBLISHED);
return $this;
}