protected function detailsForPlatform()
 {
     $details = parent::detailsForPlatform();
     if (isset($details[$this->fieldLabel('Username')])) {
         unset($details[$this->fieldLabel('Username')]);
     }
     return [$this->fieldLabel('Location') => $this->LocationName, $this->fieldLabel('Address') => $this->LocationAddress, $this->fieldLabel('PlaceId') => $this->Username];
 }
 public function validate()
 {
     $this->beforeExtending('validate', function ($result) {
         if (!$this->ChannelId) {
             $result->error(_t('SocialFeed.DESC-YOUTUBE-NO_CHANNEL', 'No channel set, please check the username or channel id you entered'));
         }
     });
     return parent::validate();
 }
 protected function detailsForPlatform()
 {
     return array_diff_key(array_merge(parent::detailsForPlatform(), [$this->fieldLabel('Page') => $this->Page()->Title]), ['Username' => '']);
 }
 protected function detailsForPlatform()
 {
     return array_merge(parent::detailsForPlatform(), [$this->fieldLabel('Type') => $this->Type]);
 }
 public function getFeedSettings($parent = null)
 {
     return array_merge(parent::getFeedSettings(), ['query' => ['key' => $this->setting('ApiKey', $parent), 'maxResults' => $this->Limit]]);
 }