#2831274: Bring Media entity module to core as Media module added media_entity_operation_alter(), with this comment:

/**
 * Implements hook_entity_operation_alter().
 *
 * Fix broken operations array in field UI for entities with restricted access.
 *
 * @todo This hook can be removed when issue #2836384 is done.
 * @see https://www.drupal.org/node/2836384
 */

Almost two months ago #2836384: Field UIs operations array is broken for entities with restricted access landed, but it didn't remove that work-around. So, doing that now.

CommentFileSizeAuthor
#2 2895857-2.patch1.23 KBwim leers

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB
chr.fritsch’s picture

We already have #2895581: Add test coverage ensuring that the media source field cannot be removed from a media type, where we want to remove media_entity_operation_alter()

wim leers’s picture

But that's about adding test coverage. This is about removing something that we already know to be safe (because #2836384: Field UIs operations array is broken for entities with restricted access added test coverage), that should have been removed already.

#2895581: Add test coverage ensuring that the media source field cannot be removed from a media type is about adding test coverage for media_entity_access().

chr.fritsch’s picture

Status: Needs review » Reviewed & tested by the community

Ok, fine. I assume this will pass the tests. Preemptively RTBC.

gábor hojtsy’s picture

Title: #2836384 follow-up: Remove media_entity_operation_alter() » Remove media_entity_operation_alter() as planned earlier

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.