Neos\FluidAdaptor\Core\ViewHelper\TemplateVariableContainer::getBooleanValue PHP Метод

getBooleanValue() защищенный Метод

Tries to interpret the given path as boolean value, either returns the boolean value or null.
protected getBooleanValue ( $path ) : boolean | null
$path
Результат boolean | null
    protected function getBooleanValue($path)
    {
        $normalizedPath = strtolower($path);
        if (in_array($normalizedPath, ['true', 'on', 'yes'])) {
            return true;
        }
        if (in_array($normalizedPath, ['false', 'off', 'no'])) {
            return false;
        }
        return null;
    }
TemplateVariableContainer