public function EntityProcessorBase::canExportEntity in Content Synchronizer 3.x
Return if the entity can be exported.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: THe entity.
Return value
bool The status for export.
1 call to EntityProcessorBase::canExportEntity()
- EntityProcessorBase::export in src/
Processors/ Entity/ EntityProcessorBase.php - Export the entity and return the gid if exists, else false.
File
- src/
Processors/ Entity/ EntityProcessorBase.php, line 644
Class
- EntityProcessorBase
- The entity processor base.
Namespace
Drupal\content_synchronizer\Processors\EntityCode
public function canExportEntity(EntityInterface $entity) {
return $entity
->getEntityType() instanceof ContentEntityType;
}