flags_ui.module in Flags 8
File
flags_ui/flags_ui.module
View source
<?php
function flags_ui_entity_type_alter(array &$entity_types) {
$entity_types['country_flag_mapping']
->setFormClass('add', 'Drupal\\flags_ui\\Form\\CountryMappingAddForm');
$entity_types['country_flag_mapping']
->setFormClass('edit', 'Drupal\\flags_ui\\Form\\CountryMappingEditForm');
$entity_types['country_flag_mapping']
->setFormClass('delete', 'Drupal\\flags_ui\\Form\\CountryMappingDeleteForm');
$entity_types['country_flag_mapping']
->setLinkTemplate('edit-form', '/admin/config/regional/flags/countries/{country_flag_mapping}');
$entity_types['country_flag_mapping']
->setLinkTemplate('delete-form', '/admin/config/regional/flags/countries/{country_flag_mapping}/delete');
$entity_types['language_flag_mapping']
->setFormClass('add', 'Drupal\\flags_ui\\Form\\LanguageMappingAddForm');
$entity_types['language_flag_mapping']
->setFormClass('edit', 'Drupal\\flags_ui\\Form\\LanguageMappingEditForm');
$entity_types['language_flag_mapping']
->setFormClass('delete', 'Drupal\\flags_ui\\Form\\LanguageMappingDeleteForm');
$entity_types['language_flag_mapping']
->setLinkTemplate('edit-form', '/admin/config/regional/flags/countries/{language_flag_mapping}');
$entity_types['language_flag_mapping']
->setLinkTemplate('delete-form', '/admin/config/regional/flags/countries/{language_flag_mapping}/delete');
}