You are here

public function DefaultNodeHandler::getAllowedPushOptions in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/cms_content_sync/entity_handler/DefaultNodeHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultNodeHandler::getAllowedPushOptions()
  2. 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultNodeHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultNodeHandler::getAllowedPushOptions()

Get the allowed push options.

Get a list of all allowed push options for this entity.

Return value

string[]

Overrides EntityHandlerBase::getAllowedPushOptions

See also

Flow::PUSH_*

File

src/Plugin/cms_content_sync/entity_handler/DefaultNodeHandler.php, line 39

Class

DefaultNodeHandler
Class DefaultNodeHandler, providing proper handling for published/unpublished content.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler

Code

public function getAllowedPushOptions() {
  return [
    PushIntent::PUSH_DISABLED,
    PushIntent::PUSH_AUTOMATICALLY,
    PushIntent::PUSH_AS_DEPENDENCY,
    PushIntent::PUSH_MANUALLY,
  ];
}