public function FeedsDateTime::removeGranularity in Feeds 8.2
Removes a granularity entry from the array.
File
- lib/
Drupal/ feeds/ FeedsDateTime.php, line 150
Class
- FeedsDateTime
- Extend PHP DateTime class with granularity handling, merge functionality and slightly more flexible initialization parameters.
Namespace
Drupal\feedsCode
public function removeGranularity($g) {
if ($key = array_search($g, $this->granularity)) {
unset($this->granularity[$key]);
}
}