lithium\template\Helper::_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.

Parameters

  • array $defaults
  • array $scope

    the complete set of options

Returns

array

$scope, $options

Source

	protected function _options(array $defaults, array $scope) {
		$scope += $defaults;
		$options = array_diff_key($scope, $defaults);
		return [$scope, $options];
	}