gurei.services.yml
services:
gurei.company_manager:
class: Drupal\gurei\Service\CompanyService
arguments:
- '@entity_type.manager'
CompanyService.php
<?php | |
// This code can be used in a hook_update_n to add a custom pane to an existing display in panelizer. | |
// Example variables used in the code below. | |
$nid = 1; | |
$pane_machine_name = 'my_example_custom_pane'; | |
$region = 'content'; | |
$position = 0; | |