Completed
Push — 8.x-1.x ( 72e11e...ae01cf )
by Janez
03:28
created
entity_browser.module 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
   switch ($route_name) {
19 19
     case 'help.page.entity_browser':
20 20
       $output = '';
21
-      $output .= '<h3>' . t('About') . '</h3>';
22
-      $output .= '<p>' . t('The Entity Browser module provides a generic entity browser/picker/selector. It can be used in any context where one needs to select a few entities and do something with them. For more information, see the online documentation for <a href=":entity_browser-documentation">Entity Browser</a>.', array(':entity_browser-documentation' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html')) . '</p>';
23
-      $output .= '<h3>' . t('Uses') . '</h3>';
21
+      $output .= '<h3>'.t('About').'</h3>';
22
+      $output .= '<p>'.t('The Entity Browser module provides a generic entity browser/picker/selector. It can be used in any context where one needs to select a few entities and do something with them. For more information, see the online documentation for <a href=":entity_browser-documentation">Entity Browser</a>.', array(':entity_browser-documentation' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html')).'</p>';
23
+      $output .= '<h3>'.t('Uses').'</h3>';
24 24
       $output .= '<dl>';
25
-      $output .= '<dt>' . t('General') . '</dt>';
26
-      $output .= '<dd>' . t('Entity browser comes with an example module that can be used as a starting point.') . '</dd>';
27
-      $output .= '<dt>' . t('Example use cases') . '</dt>';
28
-      $output .= '<dd>' . t('Powerfull entity reference widget') . '</dd>';
29
-      $output .= '<dd>' . t('Embedding entities into wysiwyg') . '</dd>';
25
+      $output .= '<dt>'.t('General').'</dt>';
26
+      $output .= '<dd>'.t('Entity browser comes with an example module that can be used as a starting point.').'</dd>';
27
+      $output .= '<dt>'.t('Example use cases').'</dt>';
28
+      $output .= '<dd>'.t('Powerfull entity reference widget').'</dd>';
29
+      $output .= '<dd>'.t('Embedding entities into wysiwyg').'</dd>';
30 30
       $output .= '</dl>';
31 31
 
32 32
       return $output;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 /**
67 67
  * Implements hook_form_alter().
68 68
  */
69
-function entity_browser_form_alter(&$form, FormStateInterface &$form_state) {
69
+function entity_browser_form_alter(&$form, FormStateInterface&$form_state) {
70 70
   $entity_browser_dialog_edit = \Drupal::service('request_stack')->getCurrentRequest()->get('_route');
71 71
   if ($entity_browser_dialog_edit == 'entity_browser.edit_form') {
72 72
     // Let's allow the save button only.
Please login to merge, or discard this patch.