You are here

public static function DefaultConfigEntityHandler::supports in CMS Content Sync 2.1.x

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

Class

DefaultConfigEntityHandler
Class DefaultConfigEntityHandler, providing a minimalistic implementation for any config entity type.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler

Code

public static function supports($entity_type, $bundle) {

  // Whitelist supported entity types.
  $entity_types = [
    'webform',
  ];
  return in_array($entity_type, $entity_types);
}