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

Check whether the specified entity_type exists before trying to embed entity.#10

Closed
cs-shadow wants to merge 4 commits into
drupal-media:8.x-1.xfrom
cs-shadow:staging
Closed

Check whether the specified entity_type exists before trying to embed entity.#10
cs-shadow wants to merge 4 commits into
drupal-media:8.x-1.xfrom
cs-shadow:staging

Conversation

@cs-shadow
Copy link
Copy Markdown
Member

Details in drupal.org issue: https://drupal.org/node/2271185.

Should be merged after PR #9 passes through.

@davereid
Copy link
Copy Markdown
Member

I think it would probably be better to wrap all the entity loading and rendering using a try { ... } catch (Exception $e) { ... } statement since if entity loading fails (due to not valid entity type), or entity rendering fails, it will catch all possible errors.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This belongs to another PR. You should separate things.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it looks like you're creating new PRs from existing PR branches, which makes things difficult to review. It would help to always create new branches/PRs from 8.x-1.x.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad. Remnant of previous PR.

@cs-shadow cs-shadow closed this May 20, 2014
@cs-shadow cs-shadow deleted the staging branch May 20, 2014 18:13
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