/**
  * Build an URL based in the path and the options.
  */
 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);
 }
 /**
  * Initialize this plugin.
  */
 function __construct($plugin, $profile)
 {
     parent::__construct($plugin, $profile);
     $this->table_name = 'linkit_tmp_view_table_' . rand(0, 1000) . rand(0, 1000);
 }