lithium\template\Helper::_options PHP Method

_options() protected method

Takes the defaults and current options, merges them and returns options which have the default keys removed and full set of options as the scope.
protected _options ( array $defaults, array $scope ) : array
$defaults array
$scope array the complete set of options
return array $scope, $options
    protected function _options(array $defaults, array $scope)
    {
        $scope += $defaults;
        $options = array_diff_key($scope, $defaults);
        return array($scope, $options);
    }