You are here

private static function DatexPoorMansJaliliCalendar::filterArray in Datex 8

1 call to DatexPoorMansJaliliCalendar::filterArray()
DatexPoorMansJaliliCalendar::_format in src/Datex/DatexPoorMansJaliliCalendar.php

File

src/Datex/DatexPoorMansJaliliCalendar.php, line 159
Fallback calendar implementation in case php-intl is not avaiable.

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

private static function filterArray($needle, $heystack, $always = []) {
  return array_intersect(array_merge($needle, $always), $heystack);
}