function commerce_bulk_entity_operation in Commerce Bulk 8
Implements hook_entity_operation().
File
- ./
commerce_bulk.module, line 151 - Contains commerce_bulk.module.
Code
function commerce_bulk_entity_operation(EntityInterface $entity) {
if ($entity instanceof ProductAttributeInterface || $entity instanceof VocabularyInterface) {
return \Drupal::service('class_resolver')
->getInstanceFromDefinition(BulkEntityTypeInfo::class)
->entityOperation($entity);
}
}