public function Flow::supportsEntity in CMS Content Sync 8
Same name and namespace in other branches
- 2.0.x src/Entity/Flow.php \Drupal\cms_content_sync\Entity\Flow::supportsEntity()
Ask this synchronization whether it supports the provided entity. Returns false if either the entity type is not known or the config handler is set to {
Return value
bool
See also
Flow::HANDLER_IGNORE}.
File
- src/
Entity/ Flow.php, line 673
Class
- Flow
- Defines the "Content Sync - Flow" entity.
Namespace
Drupal\cms_content_sync\EntityCode
public function supportsEntity(EntityInterface $entity) {
$config = $this
->getEntityTypeConfig($entity
->getEntityTypeId(), $entity
->bundle());
if (empty($config) || empty($config['handler'])) {
return false;
}
return self::HANDLER_IGNORE != $config['handler'];
}