You are here

EntityRoutingMap.php in Form mode manager 8

Same filename and directory in other branches
  1. 8.2 src/Annotation/EntityRoutingMap.php

File

src/Annotation/EntityRoutingMap.php
View source
<?php

namespace Drupal\form_mode_manager\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines form mode manager annotation object.
 *
 * @see hook_form_mode_manager_display_info_alter()
 *
 * @Annotation
 */
class EntityRoutingMap extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the display.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * Gets the target entity type.
   *
   * @var string
   */
  public $targetEntityType;

  /**
   * Name of Add EntityForm class.
   *
   * @var string
   */
  public $defaultFormClass = 'default';

  /**
   * Name of Edit EntityForm class.
   *
   * @var string
   */
  public $editFormClass = 'edit';

  /**
   * A mapping of entity form operation available for that entity.
   *
   * @var array[]
   */
  public $operations = [];

}

Classes

Namesort descending Description
EntityRoutingMap Defines form mode manager annotation object.