function opigno_calendar_event_update_8001 in Opigno calendar event 8
Update access handler for opigno calendar event entity.
File
- ./
opigno_calendar_event.install, line 22 - Install, update and uninstall functions for the Opigno Calendar Event module.
Code
function opigno_calendar_event_update_8001() {
$definition_update_manager = \Drupal::entityDefinitionUpdateManager();
$entity_type = $definition_update_manager
->getEntityType('opigno_calendar_event');
$entity_type
->setHandlerClass('access', CalendarEventAccess::class);
$definition_update_manager
->updateEntityType($entity_type);
}