public static function EntityHandlerPluginManager::isEntityTypeConfiguration in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isEntityTypeConfiguration()
- 2.0.x src/Plugin/Type/EntityHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager::isEntityTypeConfiguration()
Parameters
EntityTypeInterface|string $type:
Return value
bool
14 calls to EntityHandlerPluginManager::isEntityTypeConfiguration()
- cms_content_sync_entity_delete in ./
cms_content_sync.module - Push the entity deletion automatically if configured to do so.
- Embed::nodeStatus in src/
Controller/ Embed.php - EntityHandlerBase::createNew in src/
Plugin/ EntityHandlerBase.php - EntityResource::handleIncomingEntity in src/
Plugin/ rest/ resource/ EntityResource.php - FlowControllerSimple::getFormConfig in src/
Controller/ FlowControllerSimple.php
File
- src/
Plugin/ Type/ EntityHandlerPluginManager.php, line 66
Class
- EntityHandlerPluginManager
- Manages discovery and instantiation of entity handler plugins.
Namespace
Drupal\cms_content_sync\Plugin\TypeCode
public static function isEntityTypeConfiguration($type) {
if (is_string($type)) {
/**
* @var \Drupal\Core\Entity\EntityTypeManager $entityTypeManager
*/
$entityTypeManager = \Drupal::service('entity_type.manager');
$type = $entityTypeManager
->getDefinition($type);
}
return $type
->entityClassImplements('Drupal\\Core\\Config\\Entity\\ConfigEntityInterface');
}