Skip to content
Snippets Groups Projects
Commit 2aff5ec7 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3405825 by daisyleroy, Kanchan Bhogade: Usage tab is added for all...

Issue #3405825 by daisyleroy, Kanchan Bhogade: Usage tab is added for all entities even if not active on
parent 355dbde1
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ class EntityTypeInfo implements ContainerInjectionInterface {
public function entityTypeAlter(array &$entity_types) {
$entity_type_with_link_template = $this->config->get('active_on') ?? [];
foreach ($entity_types as $entity_type_id => $entity_type) {
if (!in_array($entity_type_id, array_filter($entity_type_with_link_template))) {
if (!in_array($entity_type_id, array_keys(array_filter($entity_type_with_link_template)))) {
continue;
}
if (($entity_type->getFormClass('default') || $entity_type->getFormClass('edit')) && $entity_type->hasLinkTemplate('edit-form')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment