public function ContentHubFilter::getPublishSetting in Acquia Content Hub 8
Returns the human-readable publish_setting.
Return value
string The human-readable publish_setting.
Overrides ContentHubFilterInterface::getPublishSetting
File
- acquia_contenthub_subscriber/
src/ Entity/ ContentHubFilter.php, line 133
Class
- ContentHubFilter
- Defines the ContentHubFilter entity.
Namespace
Drupal\acquia_contenthub_subscriber\EntityCode
public function getPublishSetting() {
$setting = [
'none' => t('None'),
'import' => t('Always Import'),
'publish' => t('Always Publish'),
];
return $setting[$this->publish_setting];
}