RelationLinkManagerInterface.php

Contains \Drupal\rest\LinkManager\RelationLinkManagerInterface.

Namespace

Drupal\rest\LinkManager

File

drupal/core/modules/rest/lib/Drupal/rest/LinkManager/RelationLinkManagerInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\rest\LinkManager\RelationLinkManagerInterface.
 */
namespace Drupal\rest\LinkManager;

interface RelationLinkManagerInterface {

  /**
   * Gets the URI that corresponds to a field.
   *
   * @param string $entity_type
   *   The bundle's entity type.
   * @param string $bundle
   *   The bundle name.
   * @param string $field_name
   *   The field name.
   *
   * @return string
   *   The corresponding URI for the field.
   */
  public function getRelationUri($entity_type, $bundle, $field_name);

}

Interfaces