Contao\Controller::findContentElement PHP Method

findContentElement() public static method

Find a content element in the TL_CTE array and return the class name
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use ContentElement::findClass() instead.
public static findContentElement ( string $strName ) : string
$strName string The content element name
return string The class name
    public static function findContentElement($strName)
    {
        @trigger_error('Using Controller::findContentElement() has been deprecated and will no longer work in Contao 5.0. Use ContentElement::findClass() instead.', E_USER_DEPRECATED);
        return \ContentElement::findClass($strName);
    }