getIntegrationEntity(); return (bool) $integration->getIsPublished() ?: false; } catch (IntegrationNotFoundException) { return false; } } /** * @return mixed[] */ public function getFeatureSettings(): array { try { $integration = $this->getIntegrationEntity(); return $integration->getFeatureSettings() ?: []; } catch (IntegrationNotFoundException) { return []; } } /** * @throws IntegrationNotFoundException */ public function getIntegrationEntity(): Integration { $integrationObject = $this->integrationsHelper->getIntegration(GrapesJsBuilderIntegration::NAME); return $integrationObject->getIntegrationConfiguration(); } }