You are here

public function FormModeManager::getFormModeManagerPath in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::getFormModeManagerPath()

Gets the path of specified entity type for a form mode.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

string $form_mode_id: The form mode machine name.

Return value

string The path to use the specified form mode.

Overrides FormModeManagerInterface::getFormModeManagerPath

File

src/FormModeManager.php, line 113

Class

FormModeManager
FormDisplayManager service.

Namespace

Drupal\form_mode_manager

Code

public function getFormModeManagerPath(EntityTypeInterface $entity_type, $form_mode_id) {
  return $entity_type
    ->getLinkTemplate('canonical') . "/" . $form_mode_id;
}