What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-28 04:37:07
shopware 5 subscribe to theme collect javascript
<?php namespace SmnTest\Subscriber; use Enlight\Event\SubscriberInterface; use Test\Components\MainConfiguration; class Frontend implements SubscriberInterface { private $pluginPath; private $mainConfiguration; public function __constru... Add solution -
PHP 2021-09-27 16:36:02
drupal 9 custom blocks dependency injection
/** * @file * Contains \Drupal\mymod\Plugin\Block\MyModMyStoreProductsStatusBlock */ namespace Drupal\mymod\Plugin\Block; use Drupal\Core\Block\BlockBase; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\mymod\StoreService; use Symf... Add solution -
PHP 2021-09-21 09:31:03
drupal 9 custom access checking for routes
<?php namespace Drupal\mymod\Access; use Drupal\Core\Routing\Access\AccessInterface; use Drupal\Core\Access\AccessResult; use Drupal\mymod\StoreService; class CardEditAccessChecker implements AccessInterface { // injected StoreService private $... Add solution -
Other 2021-09-20 06:03:02
magento 2 change customer group programmatically
<?php namespace [Company Name]\[Module Name]\Observer\Frontend\Customer; use Magento\Framework\Event\ObserverInterface; class RegisterSuccess implements \Magento\Framework\Event\ObserverInterface { const CUSTOMER_GROUP_ID = 2; protect... Add solution
Best helpers
Ranking is empty