-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Update README.md add url embed filter intial Delete UrlEmbedFilter.php~ add url_info.yml Update url_embed.info.yml change_directory_structure remove duplicated directory remove duplicate file URLEmbedFilter correct class name remove unnecessary functions remove unnecessary imports remove unnecessary imports inital text_filter Intial Code for Url Button track url button files update UrlButton.php update url button remove sourceMachineName from interface update UrlButtonListBuilder initial commit For Forms remove entity-bundle related functions change Filenames update UrlEmbedDialog.php rename URL to Entity add routing.yml Add yml files update UrlButton.php Debug Url Button Forms Remove Entity Type from URLButtonlistBuilder Create UrlButtonCrudTest Update UrlButtonCrudTest update urlButton create UrlButtonAdmin Tests Update UrlButtonCrudTest untrack Embed Dialog Form remove Embed Library Add Travis CI configuration Try using drupal_ti script with sudo: required Try manually downloading, enabling and running composer manager Remove code Support composer-manager. Remove debug option Only test 8.x-1.x commits (plus pull requests) Re-add composer_manager dependency Removed duplicated notifications key Update to drupal_ti 1.3.0, support sudo:false, sync with dist file. Do not allow PHP 7 failures update UrlButton.php checkout UrlEmbedFilter for process text add links.yml update urlbutton and listbuilder update CRUD Test add yml files Edit Schema Debug Url_Buttons Remove Source, Provider and Display Plugin from button and forms merge label and button_label Correct coding standards remove Oembed variable from Url Button replce Url with URL wherever necessary
ce5e10c
to
2c7fcd6
Compare
*/ | ||
public function process($text, $langcode) { | ||
$result = new FilterProcessResult($text); | ||
try{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try-catch should be inside the foreach
loop so that even if one of the embed fails, rest still work.
'file_validate_image_resolution' => array('16x16'), | ||
), | ||
); | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this kind of stuff instead of commenting it out. No stray comments.
return $image->url(); | ||
} | ||
else { | ||
return file_create_url(drupal_get_path('module', 'url_embed') . '/js/plugins/drupalurl/entity.png'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we file this as a follow-up that we shouldn't be re-using the Entity Embed image but should be using something different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any other image. we can change it afterwards.
URL Embed Button config entity
Add Url Button and Tests.