<?php if ($this->user->hasProjectAccess('metadata', 'index', $project['id'])): ?> <li> <?= $this->url->link(t('Metadata'), 'MetadataController', 'project', ['plugin' => 'metaMagik', 'project_id' => $project['id']]) ?> </li> <?php endif ?>
info at phpclasses dot org