You are here

public function EntityformType::get_path_property in Entityform 7.2

File

./entityform.module, line 1149
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Class

EntityformType
The class used for entityform type entities

Code

public function get_path_property($property, $entityform = NULL) {
  $path = $this
    ->getTranslation($property);
  if (empty($path)) {
    return '';
  }
  if ($path == '<front>') {
    return $path;
  }
  $path = _entityform_format_text($path, array(
    'entityform_type' => $this,
    'entityform' => $entityform,
  ));
  $options = drupal_parse_url(decode_entities($path));
  return array(
    $options['path'],
    array(
      'query' => $options['query'],
    ),
  );
}