Back to InstallerAdapter class

Method getName

public string
getName
()
Get the filtered component name from the manifest
Returns
  • string The filtered name
Since
  • 3.4

Method getName - Source code

/**
 * Get the filtered component name from the manifest
 *
 * @return  string  The filtered name
 *
 * @since   3.4
 */
public function getName()
{
    // Ensure the name is a string
    $name = (string) $this->getManifest()->name;
    // Filter the name for illegal characters
    $name = InputFilter::getInstance()->clean($name, 'string');
    return $name;
}