public static function DefaultPanelizerHandler::supports 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::supports()
- 2.0.x src/Plugin/cms_content_sync/field_handler/DefaultPanelizerHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultPanelizerHandler::supports()
Check if this handler supports the given field instance.
Parameters
string $entity_type:
string $bundle:
string $field_name:
Return value
bool
Overrides FieldHandlerInterface::supports
File
- src/
Plugin/ cms_content_sync/ field_handler/ DefaultPanelizerHandler.php, line 36
Class
- DefaultPanelizerHandler
- Providing a handler for the panelizer module.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\field_handlerCode
public static function supports($entity_type, $bundle, $field_name, FieldDefinitionInterface $field) {
$allowed = [
'panelizer',
];
return false !== in_array($field
->getType(), $allowed);
}