Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

URL Embed Button config entity #2

Merged
merged 12 commits into from
Aug 5, 2015

Conversation

prateekmehta
Copy link
Contributor

Add Url Button and Tests.

@prateekmehta prateekmehta changed the title Url embed button WIP : Url Embed Button Jul 1, 2015
cs-shadow added a commit that referenced this pull request Jul 8, 2015
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
*/
public function process($text, $langcode) {
$result = new FilterProcessResult($text);
try{
Copy link
Member

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'),
),
);
/*
Copy link
Member

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.

@cs-shadow cs-shadow changed the title WIP : Url Embed Button URL Embed Button config entity Aug 5, 2015
return $image->url();
}
else {
return file_create_url(drupal_get_path('module', 'url_embed') . '/js/plugins/drupalurl/entity.png');
Copy link
Member

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?

Copy link
Contributor Author

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.

davereid added a commit that referenced this pull request Aug 5, 2015
@davereid davereid merged commit 657ad9f into drupal-media:8.x-1.x Aug 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants