You are here

public function FieldHandlerBase::getAllowedPushOptions in CMS Content Sync 2.1.x

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

Get the allowed push options.

Get a list of all allowed push options for this field. You can either allow {{{

Return value

string[]

Overrides FieldHandlerInterface::getAllowedPushOptions

See also

PushIntent::PUSH_DISABLED} or

PushIntent::PUSH_DISABLED} and

PushIntent::PUSH_AUTOMATICALLY}.

File

src/Plugin/FieldHandlerBase.php, line 115

Class

FieldHandlerBase
Common base class for field handler plugins.

Namespace

Drupal\cms_content_sync\Plugin

Code

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