You are here

function LinkitPluginEntity::buildPath in Linkit 7.2

Build an URL based in the path and the options.

Overrides LinkitPlugin::buildPath

1 call to LinkitPluginEntity::buildPath()
LinkitPluginEntity::autocomplete_callback in plugins/linkit_plugins/linkit-plugin-entity.class.php
The autocomplete callback function for the Linkit Entity plugin.
1 method overrides LinkitPluginEntity::buildPath()
LinkitPluginFile::buildPath in plugins/linkit_plugins/linkit-plugin-file.class.php
Build an URL based in the path and the options.

File

plugins/linkit_plugins/linkit-plugin-entity.class.php, line 84
Define Linkit entity plugin.

Class

LinkitPluginEntity
@file Define Linkit entity plugin.

Code

function buildPath($entity, $options = array()) {

  // Create the URI for the entity.
  $uri = entity_uri($this->plugin['entity_type'], $entity);

  // We have to set alias to TRUE as we don't want an alias back.
  $options += array(
    'alias' => TRUE,
  );
  return parent::buildPath($uri['path'], $options);
}