Elcodi\Admin\PluginBundle\Builder\PluginMenuBuilder::filterVisiblePlugins PHP Method

filterVisiblePlugins() protected method

Return only visible plugins
protected filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[]
return Elcodi\Component\Plugin\Entity\Plugin[] Visible plugins
    protected function filterVisiblePlugins()
    {
        return array_filter($this->enabledPlugins, function (Plugin $plugin) {
            return $plugin->getConfigurationValue('visible') && $plugin->hasFields();
        });
    }