This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if code is running on production mode. | |
*/ | |
export const isProduction = () => | |
typeof process !== "undefined" && process.env.NODE_ENV === "production" | |
/** | |
* Check if code is running on development mode. | |
*/ | |
export const isDevelopment = !isProduction() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\graphql_cookie\Plugin\GraphQL\Mutations; | |
use Drupal\Core\DependencyInjection\DependencySerializationTrait; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\graphql\Plugin\GraphQL\Mutations\MutationPluginBase; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Drupal\graphql\GraphQL\Execution\ResolveContext; | |
use GraphQL\Type\Definition\ResolveInfo; |
OlderNewer