function basic_cart_entity_view_alter in Basic cart 8
Same name and namespace in other branches
- 8.0 basic_cart.module \basic_cart_entity_view_alter()
Implements hook_ENTITY_TYPE_view() for node entities.
File
- ./
basic_cart.module, line 46
Code
function basic_cart_entity_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
//die;
/*print $entity->hasfield('add_to_cart'); die;
if($entity->getEntityTypeId() == "test1") {
die;
} */
}