The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| diff --git a/src/Plugin/QueueWorker/BrightcovePlaylistQueueWorker.php b/src/Plugin/QueueWorker/BrightcovePlaylistQueueWorker.php | |
| index 35fadb7..69dd27c 100644 | |
| --- a/src/Plugin/QueueWorker/BrightcovePlaylistQueueWorker.php | |
| +++ b/src/Plugin/QueueWorker/BrightcovePlaylistQueueWorker.php | |
| @@ -78,7 +78,7 @@ class BrightcovePlaylistQueueWorker extends QueueWorkerBase implements Container | |
| BrightcovePlaylist::createOrUpdate($playlist, $this->playlistStorage, $this->videoStorage, $data['api_client_id']); | |
| } | |
| catch (\Exception $e) { | |
| - throw new RequeueException($e->getMessage(), $e->getCode(), $e); | |
| + \Drupal::logger('brightcove_extras')->error('Playlist update error. Video does not exist locally.'); |
| {# Borrowed some syntax from https://gist.github.com/NikLP/cb9adc963036d1ffd8896928de2b9b7a and expanded upon it. #} | |
| <div{{ attributes.addClass('container') }}> | |
| {% for item in items %} | |
| {# NB! notation: loop.index is 1 start, loop.index0 is zero start. #} | |
| {# Add first/last/odd/even classes to elements in loop #} | |
| {# odd/even #} | |
| {% set loopClasses = [] %} | |
| {% if loop.index is odd %} | |
| {% set loopClasses = loopClasses|merge(["odd"]) %} |
| // ********************************************************************************** | |
| // | |
| // Javascript utility to parse page URL into Javascript Object for easy manipulation | |
| // | |
| // Written by: aymanfarhat | |
| // | |
| // Source: https://gist.github.com/aymanfarhat/5608517 | |
| // | |
| // Dependencies: | |
| // none |