Skip to content
Snippets Groups Projects
Commit b79a4bc4 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2346969 by Berdir, damiankloip: Fixed Shortcut overview page is sad.

parent cf44d388
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -148,8 +148,9 @@ function field_ui_entity_operation(EntityInterface $entity) { ...@@ -148,8 +148,9 @@ function field_ui_entity_operation(EntityInterface $entity) {
$operations = array(); $operations = array();
$info = $entity->getEntityType(); $info = $entity->getEntityType();
// Add manage fields and display links if this entity type is the bundle // Add manage fields and display links if this entity type is the bundle
// of another. // of another and that type has field UI enabled.
if ($bundle_of = $info->getBundleOf()) { $entity_manager = \Drupal::entityManager();
if (($bundle_of = $info->getBundleOf()) && $entity_manager->getDefinition($bundle_of)->get('field_ui_base_route')) {
$account = \Drupal::currentUser(); $account = \Drupal::currentUser();
if ($account->hasPermission('administer '. $bundle_of . ' fields')) { if ($account->hasPermission('administer '. $bundle_of . ' fields')) {
$operations['manage-fields'] = array( $operations['manage-fields'] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment