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\my_module\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* Returns responses for my_module routes. | |
*/ |
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 | |
// Disable promotion on /admin/structure/webform. | |
$config['webform.settings']['ui']['promotions_disabled'] = TRUE; | |
// Disable requirements warnings all over /admin/reports/status. | |
$config['webform.settings']['requirements']['cdn'] = FALSE; | |
$config['webform.settings']['requirements']['spam'] = FALSE; | |
// Disable misc clutter / weirdness. |
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 | |
declare(strict_types=1); | |
namespace Drupal\Tests\my_profile\Traits; | |
use Behat\Mink\Exception\UnsupportedDriverActionException; | |
use Drupal\Core\Url; | |
/** |
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 | |
use PhpParser\Node; | |
use PhpParser\Node\Arg; | |
use PhpParser\Node\Expr\FuncCall; | |
use PhpParser\Node\Expr\MethodCall; | |
use PhpParser\Node\Name; | |
use PhpParser\Node\Scalar\String_; | |
use Rector\Core\Contract\Rector\RectorInterface; | |
use Rector\Core\NodeFactory\NodeFactory; |