pm-4.1.x-dev/modules/pm_task/src/Entity/PmTaskType.php

modules/pm_task/src/Entity/PmTaskType.php
<?php

namespace Drupal\pm_task\Entity;

use Drupal\Core\Config\Entity\ConfigEntityBundleBase;

/**
 * Defines the Task type configuration entity.
 *
 * @ConfigEntityType(
 *   id = "pm_task_type",
 *   label = @Translation("Task type"),
 *   label_collection = @Translation("Task types"),
 *   label_singular = @Translation("Task type"),
 *   label_plural = @Translation("Tasks types"),
 *   label_count = @PluralTranslation(
 *     singular = "@count Tasks type",
 *     plural = "@count Tasks types",
 *   ),
 *   handlers = {
 *     "form" = {
 *       "add" = "Drupal\pm_task\Form\PmTaskTypeForm",
 *       "edit" = "Drupal\pm_task\Form\PmTaskTypeForm",
 *       "delete" = "Drupal\Core\Entity\EntityDeleteForm",
 *     },
 *     "list_builder" = "Drupal\pm_task\PmTaskTypeListBuilder",
 *     "route_provider" = {
 *       "html" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
 *     }
 *   },
 *   admin_permission = "administer pm task types",
 *   bundle_of = "pm_task",
 *   config_prefix = "pm_task_type",
 *   entity_keys = {
 *     "id" = "id",
 *     "label" = "label",
 *     "uuid" = "uuid"
 *   },
 *   links = {
 *     "add-form" = "/admin/pm/task_types/add",
 *     "edit-form" = "/admin/pm/task_types/manage/{pm_task_type}",
 *     "delete-form" = "/admin/pm/task_types/manage/{pm_task_type}/delete",
 *     "collection" = "/admin/pm/task_types"
 *   },
 *   config_export = {
 *     "id",
 *     "label",
 *     "uuid",
 *   }
 * )
 */
class PmTaskType extends ConfigEntityBundleBase {

  /**
   * The machine name of this pm task type.
   *
   * @var string
   */
  protected $id;

  /**
   * The human-readable name of the pm task type.
   *
   * @var string
   */
  protected $label;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc