You are here

Source.php in Backup and Migrate 5.0.x

Same filename and directory in other branches
  1. 8.4 src/Entity/Source.php

File

src/Entity/Source.php
View source
<?php

namespace Drupal\backup_migrate\Entity;


/**
 * Defines the Backup Source entity.
 *
 * @ConfigEntityType(
 *   id = "backup_migrate_source",
 *   label = @Translation("Backup Source"),
 *   handlers = {
 *     "list_builder" = "Drupal\backup_migrate\Controller\SourceListBuilder",
 *     "form" = {
 *       "default" = "Drupal\backup_migrate\Form\SourceForm",
 *       "delete" = "Drupal\backup_migrate\Form\EntityDeleteForm"
 *     },
 *   },
 *   admin_permission = "administer backup and migrate",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid",
 *     "type" = "type",
 *     "config" = "config"
 *   },
 *   links = {
 *     "canonical" = "/admin/config/development/backup_migrate/settings/source/{backup_migrate_source}",
 *     "add-form" = "/admin/config/development/backup_migrate/settings/source/add",
 *     "edit-form" = "/admin/config/development/backup_migrate/settings/source/{backup_migrate_source}/edit",
 *     "delete-form" = "/admin/config/development/backup_migrate/settings/source/{backup_migrate_source}/delete",
 *     "collection" = "/admin/config/development/backup_migrate/settings/source"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *     "uuid",
 *     "type",
 *     "config"
 *   }
 * )
 */
class Source extends WrapperEntityBase {

  /**
   * Return the plugin manager.
   *
   * @return string
   */
  public function getPluginManager() {
    return \Drupal::service('plugin.manager.backup_migrate_source');
  }

}

Classes

Namesort descending Description
Source Defines the Backup Source entity.