Back to AssociationExtensionHelper class

Method getTypeTitle

public string
getTypeTitle
(mixed $typeName)
Get the type title
Parameters
  • string $typeName The item type
Returns
  • string The type title
Since
  • 3.7.0

Method getTypeTitle - Source code

/**
 * Get the type title
 *
 * @param   string  $typeName  The item type
 *
 * @return  string  The type title
 *
 * @since   3.7.0
 */
public function getTypeTitle($typeName)
{
    $type = $this->getType($typeName);
    if (!\array_key_exists('title', $type)) {
        return '';
    }
    return $type['title'];
}