Commit 3b9cdafd authored by Peter Drauc's avatar Peter Drauc
Browse files

coding standars

parent 9cfccf0a
......@@ -8,4 +8,4 @@ dependencies:
- token
enforced:
module:
- menu_token
\ No newline at end of file
- menu_token
entity.link_configuration_storage.add_form:
route_name: 'entity.link_configuration_storage.add_form'
title: 'Add Link configuration storage'
......@@ -4,5 +4,3 @@ menu_token.available_entities_configuration_form:
description: 'A description for the menu entry'
parent: system.modules_list
weight: 99
......@@ -410,15 +410,11 @@ function menu_token_prepare_context_replacement(&$links) {
}
/**
* Replace links with tokens.
*/
function menu_token_menu_links_discovered_alter(&$links) {
$context_manager = \Drupal::service('menu_token.context_manager');
$context_manager->clear();
......@@ -437,7 +433,6 @@ function menu_token_menu_links_discovered_alter(&$links) {
$token_service = \Drupal::token();
$bubbleable_metadata = new BubbleableMetadata();
if (!empty($relevant_links) && is_array($relevant_links)) {
foreach ($relevant_links as $relevant_link) {
$uuId_from_link = substr($relevant_link['id'], strpos($relevant_link['id'], ":") + 1, strlen($relevant_link['id']));
......
......@@ -16,4 +16,4 @@ menu_token.page.show.available.tokens:
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
\ No newline at end of file
_admin_route: TRUE
......@@ -5,9 +5,6 @@ namespace Drupal\menu_token\EventSubscriber;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Drupal\Core\Session\AccountProxy;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Plugin\Context\ContextRepositoryInterface;
use Drupal\menu_token\Service\MenuTokenContextManager;
/**
......@@ -43,7 +40,6 @@ class MenuTokenSubscriber implements EventSubscriberInterface {
$this->menuTokenContextManager->replaceContextualLinks();
}
/**
......
......@@ -19,7 +19,7 @@ class AvailableEntitiesConfigurationForm extends ConfigFormBase {
/**
* Drupal\webprofiler\Entity\EntityManagerWrapper definition.
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface;
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
......
......@@ -4,7 +4,6 @@ namespace Drupal\menu_token\Form;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\menu_token\Entity\LinkConfigurationStorage;
/**
* Class LinkConfigurationStorageForm.
......@@ -19,7 +18,7 @@ class LinkConfigurationStorageForm extends EntityForm {
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
/** @var LinkConfigurationStorage $link_configuration_storage */
/** @var \Drupal\menu_token\Entity\LinkConfigurationStorage $link_configuration_storage */
$link_configuration_storage = $this->entity;
$form['label'] = [
'#type' => 'textfield',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment