You are here

public static function EntityHandlerPluginManager::isSupported in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isSupported()
  2. 2.0.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isSupported()

Check whether or not the given entity type is supported.

Parameters

$type_key:

$entity_bundle_name:

Return value

mixed

6 calls to EntityHandlerPluginManager::isSupported()
cms_content_sync_entity_delete in ./cms_content_sync.module
Push the entity deletion automatically if configured to do so.
cms_content_sync_entity_insert in ./cms_content_sync.module
Push the entity automatically if configured to do so.
cms_content_sync_entity_operation_alter in ./cms_content_sync.module
Implements hook_entity_operation_alter().
cms_content_sync_entity_translation_delete in ./cms_content_sync.module
Implements hook_entity_translation_delete().
cms_content_sync_entity_update in ./cms_content_sync.module
Push the entity automatically if configured to do so.

... See full list

File

src/Plugin/Type/EntityHandlerPluginManager.php, line 218

Class

EntityHandlerPluginManager
Manages discovery and instantiation of entity handler plugins.

Namespace

Drupal\cms_content_sync\Plugin\Type

Code

public static function isSupported($type_key, $entity_bundle_name) {
  return self::getEntityTypeInfo($type_key, $entity_bundle_name)['is_supported'];
}