You are here

EntityRoutingMapInterface.php in Form mode manager 8

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

File

src/EntityRoutingMapInterface.php
View source
<?php

namespace Drupal\form_mode_manager;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;

/**
 * EntityRoutingMapInterface interface class.
 */
interface EntityRoutingMapInterface extends PluginInspectionInterface, ConfigurablePluginInterface {

  /**
   * Returns the display label.
   *
   * @return string
   *   The display label.
   */
  public function label();

  /**
   * Return the form operation route for given operation.
   *
   * @return string
   *   The route of given operation.
   */
  public function getOperation($operation_name);

  /**
   * Return the form operation route mapping.
   *
   * @return array[]
   *   The mapping of each entity form operation given by plugin annotation.
   */
  public function getOperations();

  /**
   * Set a mapping of operations for Generic plugin.
   */
  public function setOperations();

  /**
   * Gets the target entity type.
   *
   * @return string
   *   The target entity type.
   */
  public function getTargetEntityType();

  /**
   * Get the default form class Definition.
   *
   * @return string
   *   The name of entity default form class.
   */
  public function getDefaultFormClass();

  /**
   * Set the default form class Definition.
   */
  public function setDefaultFormClass();

  /**
   * Get the edit form class Definition.
   *
   * @return string
   *   The name of entity default form class.
   */
  public function getEditFormClass();

  /**
   * Set the edit form class Definition.
   */
  public function setEditFormClass();

  /**
   * Set the target entity type.
   */
  public function setTargetEntityType();

}

Interfaces

Namesort descending Description
EntityRoutingMapInterface EntityRoutingMapInterface interface class.