/**
* Get the filtered extension element from the manifest
*
* @param string $element Optional element name to be converted
*
* @return string The filtered element
*
* @since 3.4
*/
public function getElement($element = null)
{
if (!$element) {
$manifestPath = Path::clean($this->parent->getPath('manifest'));
$element = preg_replace('/\\.xml/', '', basename($manifestPath));
}
return $element;
}