function rate_entity_type_build in Rate 8.2
Implements hook_entity_type_build().
File
- ./
rate.module, line 337 - Hook implementation code for the Rate module.
Code
function rate_entity_type_build(array &$entity_types) {
// Enables the RateWidgetBaseForm for the vote entity.
$entity_types['vote']
->setFormClass('rate_vote', 'Drupal\\rate\\Form\\RateWidgetBaseForm');
}