You are here

public static function DefaultCropHandler::supports in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/cms_content_sync/entity_handler/DefaultCropHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultCropHandler::supports()
  2. 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultCropHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultCropHandler::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/DefaultCropHandler.php, line 29

Class

DefaultCropHandler
Class DefaultCropHandler, providing a minimalistic implementation for the crop entity type.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler

Code

public static function supports($entity_type, $bundle) {
  return 'crop' == $entity_type;
}