You are here

public function DefaultMediaHandler::getAllowedPreviewOptions in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::getAllowedPreviewOptions()
  2. 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::getAllowedPreviewOptions()

Return value

string[] Provide the allowed preview options used for display when manually pulling entities

Overrides EntityHandlerInterface::getAllowedPreviewOptions

File

src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php, line 71

Class

DefaultMediaHandler
Class DefaultMediaHandler, providing a minimalistic implementation for the media entity type.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler

Code

public function getAllowedPreviewOptions() {
  return [
    'table' => 'Table',
    'preview_mode' => 'Preview mode',
  ];
}