TitanFramework::getInternalAdminPageOption PHP Method

getInternalAdminPageOption() public method

Gets the admin page option that's loaded into the instance, used by the option class
Since: 1.9
public getInternalAdminPageOption ( string $optionName, mixed $defaultValue = false ) : mixed
$optionName string The ID of the option (not namespaced).
$defaultValue mixed The default value to return if the option isn't available yet.
return mixed The option value
    public function getInternalAdminPageOption($optionName, $defaultValue = false)
    {
        // Run this first to ensure that adminOptions carries all our admin page options.
        $this->getInternalAdminOptions();
        if (array_key_exists($optionName, $this->adminOptions)) {
            return $this->adminOptions[$optionName];
        } else {
            return $defaultValue;
        }
    }