Source of file GraphQLLegacyExtension.php
Size: 0,600 Bytes - Last Modified: 2021-12-23T10:27:20+00:00
/var/www/docs.ssmods.com/process/src/_legacy/GraphQL/GraphQLLegacyExtension.php
123456789101112131415161718192021222324252627 | <?php namespace SilverStripe\Admin\GraphQL; use SilverStripe\ORM\DataExtension; /** * Remove when graphql 4 is in core. This just a bridge to help with backward compatability. * It injects a data- attribute into the document to allow early loaded JS files to use * conditionals. * * Coupling, but better than making this the concern of multiple modules. * * @internal */ class GraphQLLegacyExtension extends DataExtension { /** * @return bool */ public function GraphQLLegacy(): bool { return (boolean) $this->owner->config()->get('graphql_legacy'); } } |