You are here

public function ContentHubFilter::getPublishStatus in Acquia Content Hub 8

Returns the Publish status for this particular filter.

This is the status flag to be saved on node entities.

Return value

int|bool 0 if Unpublished status, 1 for Publish status, FALSE otherwise.

Overrides ContentHubFilterInterface::getPublishStatus

File

acquia_contenthub_subscriber/src/Entity/ContentHubFilter.php, line 150

Class

ContentHubFilter
Defines the ContentHubFilter entity.

Namespace

Drupal\acquia_contenthub_subscriber\Entity

Code

public function getPublishStatus() {
  $status = [
    'none' => FALSE,
    'import' => 0,
    'publish' => 1,
  ];
  return $status[$this->publish_setting];
}