public static function DefaultMediaHandler::supports in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::supports()
- 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultMediaHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMediaHandler::supports()
Check if this handler supports the given entity type.
Parameters
string $entity_type:
string $bundle:
Return value
bool
Overrides EntityHandlerInterface::supports
File
- src/
Plugin/ cms_content_sync/ entity_handler/ DefaultMediaHandler.php, line 28
Class
- DefaultMediaHandler
- Class DefaultMediaHandler, providing a minimalistic implementation for the media entity type.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
public static function supports($entity_type, $bundle) {
return 'media' == $entity_type;
}