You are here

function feed_import_entity_type_build in Feed Import 8

Implements hook_entity_type_build().

File

./feed_import.module, line 686
User interface, cron functions for feed_import module.

Code

function feed_import_entity_type_build(array &$entity_types) {
  $entity_types['feed_importer']
    ->setFormClass('edit', 'Drupal\\feed_import\\Form\\FeedImporterEditForm')
    ->setFormClass('source', 'Drupal\\feed_import\\Form\\ClassSettingsForm')
    ->setFormClass('add', 'Drupal\\feed_import\\Form\\FeedImporterAddForm')
    ->setFormClass('delete', 'Drupal\\feed_import\\Form\\DeleteFeedForm')
    ->setListBuilderClass('Drupal\\feed_import\\FeedImporterListBuilder')
    ->setLinkTemplate('admin', '/admin/confg/services/feed_import')
    ->setLinkTemplate('edit-form', '/admin/config/services/feed_import/edit/{feed_importer}')
    ->setLinkTemplate('process', '/admin/config/services/feed_import/process/{feed_importer}')
    ->setLinkTemplate('export', '/admin/config/services/feed_import/export/{feed_importer}')
    ->setLinkTemplate('delete-form', '/admin/config/services/feed_import/delete/{feed_importer}')
    ->setLinkTemplate('source-form', '/admin/config/services/feed_import/edit/{feed_importer}/source');
}