Example #1
0
 /**
  * Generates the MP URL parameter needed to access mount pages. If the item
  * is identified as being a mounted page, the &MP parameter is generated.
  *
  * @param Item $item Item to get an &MP URL parameter for
  * @return string &MP URL parameter if $item is a mounted page
  */
 protected function getMountPageDataUrlParameter(Item $item)
 {
     $mountPageUrlParameter = '';
     if ($item->hasIndexingProperty('isMountedPage')) {
         $mountPageUrlParameter = $item->getIndexingProperty('mountPageSource') . '-' . $item->getIndexingProperty('mountPageDestination');
     }
     return $mountPageUrlParameter;
 }