public function DefaultPanelizerHandler::getHandlerSettings in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/cms_content_sync/field_handler/DefaultPanelizerHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultPanelizerHandler::getHandlerSettings()
- 2.0.x src/Plugin/cms_content_sync/field_handler/DefaultPanelizerHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultPanelizerHandler::getHandlerSettings()
Get the handler settings.
Return the actual form elements for any additional settings for this handler.
Parameters
array $current_values: The current values that the user set, if any
string $type:: One of 'pull', 'push', 'both'
Return value
array
Overrides FieldHandlerBase::getHandlerSettings
File
- src/
Plugin/ cms_content_sync/ field_handler/ DefaultPanelizerHandler.php, line 48
Class
- DefaultPanelizerHandler
- Providing a handler for the panelizer module.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\field_handlerCode
public function getHandlerSettings($current_values, $type = 'both') {
$options = [];
if ('pull' !== $type) {
$options = [
'export_referenced_custom_blocks' => [
'#type' => 'checkbox',
'#title' => 'Push referenced custom blocks',
'#default_value' => $this
->shouldPushReferencedBlocks(),
],
];
}
return $options;
}