$ docker images
This file contains 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 | |
/** | |
* @file | |
* Remove Drupal 8 Settings. | |
*/ | |
\Drupal::configFactory()->getEditable('automated_cron.settings')->delete(); | |
// Or. | |
\Drupal::service('config.factory')->getEditable('automated_cron.settings')->delete(); |
This file contains 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 Symfony\Component\DomCrawler\Crawler; | |
class CustomCrawler { | |
protected function removeExtLinkImages($value) { | |
$value = '<body>' . $value . '</body>' ?: ''; | |
$crawler = new Crawler($value, 'http://localhost'); | |
// Remove all Icon_External_Link.png images. |
This file contains 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
uuid: a2c81f98-bbd0-4cac-af95-c556b76731e1 | |
langcode: en | |
status: true | |
dependencies: | |
enforced: | |
module: | |
- mymodule | |
id: node_with_paragraph | |
class: null | |
field_plugin_method: null |
This file contains 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\module\Service; | |
use Drupal\node\NodeInterface; | |
/** | |
* Helper Class. | |
*/ | |
class Helper { |
This file contains 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 Dompdf\Dompdf; | |
use Symfony\Component\HttpFoundation\ResponseHeaderBag; | |
use Symfony\Component\HttpFoundation\StreamedResponse; | |
/** |
This file contains 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\license_modal\Plugin\Block; | |
use Drupal\license_modal\Form\AcceptLicenseForm; | |
use Drupal\Core\Block\BlockBase; | |
use Drupal\Core\Entity\EntityStorageInterface; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\Core\Session\AccountInterface; |
OlderNewer