public static final function get_behat_theme_selector_override_classname($themename, $selectortype, $includeclass = false) {
        global $CFG;

        if ($selectortype !== 'named_partial' && $selectortype !== 'named_exact') {
            throw new coding_exception("Unknown selector override type '{$selectortype}'");
        }

        $overridebehatclassname = "behat_theme_{$themename}_behat_{$selectortype}_selectors";

        if ($includeclass) {
            $themeoverrideselector = $CFG->dirroot . DIRECTORY_SEPARATOR . 'theme' . DIRECTORY_SEPARATOR . $themename .
                self::get_behat_tests_path() . DIRECTORY_SEPARATOR . $overridebehatclassname . '.php';

            if (file_exists($themeoverrideselector)) {
                require_once($themeoverrideselector);
            }
        }

        return $overridebehatclassname;
    }
public static final function get_behat_theme_selector_override_classname($themename, $selectortype, $includeclass = false) {
        global $CFG;

        if ($selectortype !== 'named_partial' && $selectortype !== 'named_exact') {
            throw new coding_exception("Unknown selector override type '{$selectortype}'");
        }

        $overridebehatclassname = "behat_theme_{$themename}_behat_{$selectortype}_selectors";

        if ($includeclass) {
            $themeoverrideselector = $CFG->dirroot . DIRECTORY_SEPARATOR . 'theme' . DIRECTORY_SEPARATOR . $themename .
                self::get_behat_tests_path() . DIRECTORY_SEPARATOR . $overridebehatclassname . '.php';

            if (file_exists($themeoverrideselector)) {
                require_once($themeoverrideselector);
            }
        }

        return $overridebehatclassname;
    }
public static final function get_behat_theme_selector_override_classname ( $ themename , $ selectortype , $ includeclass = false ) { global $ CFG ; if ( $ selectortype !== 'named_partial' && $ selectortype !== 'named_exact' ) { throw new coding_exception ( "Unknown selector override type '{$selectortype}'" ) ; } $ overridebehatclassname = "behat_theme_{$themename}_behat_{$selectortype}_selectors" ; if ( $ includeclass ) { $ themeoverrideselector = $ CFG -> dirroot . DIRECTORY_SEPARATOR . 'theme' . DIRECTORY_SEPARATOR . $ themename . self :: get_behat_tests_path ( ) . DIRECTORY_SEPARATOR . $ overridebehatclassname . '.php' ; if ( file_exists ( $ themeoverrideselector ) ) { require_once ( $ themeoverrideselector ) ; } } return $ overridebehatclassname ; }
Return context name of behat_theme selector to use.

@param string $themename name of the theme.
@param string $selectortype The type of selector (partial or exact at this stage)
@param bool $includeclass if class should be included.
@return string
Return context name of behat_theme selector to use .