Your software
My Mautic version is: v3.0.0-beta
My PHP version is: 7.3
Your problem
My problem is: I am building a plugin. The plugin shows a menu in admin section if the integration is enabled. I have added that code in plugin config file.
‘checks’ => array(
‘integration’ => [
‘MyPlugin’ => [
‘enabled’ => true,
],
],
),
Below is my integration code
namespace MauticPlugin\MyPluginBundle\Integration;
use Mautic\PluginBundle\Entity\Integration;
use Mautic\PluginBundle\Integration\AbstractIntegration;
/**
* Class MyPluginIntegration.
*/
class MyPluginIntegration extends AbstractIntegration
{
const INTEGRATION_NAME = 'MyPlugin';
const DISPLAY_NAME = 'My Plugin';
/**
* {@inheritdoc}
*/
public function getName()
{
return self::INTEGRATION_NAME;
}
/**
* {@inheritdoc}
*/
public function getDisplayName()
{
return self::DISPLAY_NAME;
}
/**
* Return's authentication method such as oauth2, oauth1a, key, etc.
*
* @return string
*/
public function getAuthenticationType()
{
// Just use none for now and I'll build in "basic" later
return 'none';
}
}
The plugin popup does show in v 3 but there is no published buttons as shown on https://share.getcloudapp.com/DOuQxdl0
On old versions 2.16, 2.15.3 the same code does show published yes, no buttons.
What changes do I need to make it work on v 3.0 version also.