@@ -90,9 +90,9 @@ discard block |
||
90 | 90 | $entity_browser = $cached_values['entity_browser']; |
91 | 91 | |
92 | 92 | if (empty($entity_browser->id())) { |
93 | - $help_text = '<div class="clearfix eb-help-text"><h2>' . $this->t('Entity Browser creation instructions') . '</h2>'; |
|
94 | - $help_text .= '<p>' . $this->t('This is a multi-step form. In this first step you need to define the main characteristics of the Entity Browser (in other words, which plugins will be used for each functionality). In the following steps of this wizard, each individual plugin can be configured, when necessary.') . '</p>'; |
|
95 | - $help_text .= '<p>' . $this->t('You can find more detailed information about creating and configuring Entity Browsers at the <a href="@guide_href" target="_blank">official documentation</a>.', ['@guide_href' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html']) . '</p>'; |
|
93 | + $help_text = '<div class="clearfix eb-help-text"><h2>'.$this->t('Entity Browser creation instructions').'</h2>'; |
|
94 | + $help_text .= '<p>'.$this->t('This is a multi-step form. In this first step you need to define the main characteristics of the Entity Browser (in other words, which plugins will be used for each functionality). In the following steps of this wizard, each individual plugin can be configured, when necessary.').'</p>'; |
|
95 | + $help_text .= '<p>'.$this->t('You can find more detailed information about creating and configuring Entity Browsers at the <a href="@guide_href" target="_blank">official documentation</a>.', ['@guide_href' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html']).'</p>'; |
|
96 | 96 | $help_text .= '</div>'; |
97 | 97 | $form['help_text'] = [ |
98 | 98 | '#markup' => $help_text, |
@@ -100,10 +100,10 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | $displays = []; |
103 | - $display_description = $this->t('Choose here how the browser(s) should be presented to the end user. The available plugins are:') . '<ul>'; |
|
103 | + $display_description = $this->t('Choose here how the browser(s) should be presented to the end user. The available plugins are:').'<ul>'; |
|
104 | 104 | foreach ($this->displayManager->getDefinitions() as $plugin_id => $plugin_definition) { |
105 | 105 | $displays[$plugin_id] = $plugin_definition['label']; |
106 | - $display_description .= '<li><b>' . $plugin_definition['label'] . ':</b> ' . $plugin_definition['description'] . '</li>'; |
|
106 | + $display_description .= '<li><b>'.$plugin_definition['label'].':</b> '.$plugin_definition['description'].'</li>'; |
|
107 | 107 | } |
108 | 108 | $display_description .= '</ul>'; |
109 | 109 | $form['display'] = [ |
@@ -116,10 +116,10 @@ discard block |
||
116 | 116 | ]; |
117 | 117 | |
118 | 118 | $widget_selectors = []; |
119 | - $widget_description = $this->t('In the last step of the entity browser configuration you can decide how the widgets will be available to the editor. The available plugins are:') . '<ul>'; |
|
119 | + $widget_description = $this->t('In the last step of the entity browser configuration you can decide how the widgets will be available to the editor. The available plugins are:').'<ul>'; |
|
120 | 120 | foreach ($this->widgetSelectorManager->getDefinitions() as $plugin_id => $plugin_definition) { |
121 | 121 | $widget_selectors[$plugin_id] = $plugin_definition['label']; |
122 | - $widget_description .= '<li><b>' . $plugin_definition['label'] . ':</b> ' . $plugin_definition['description'] . '</li>'; |
|
122 | + $widget_description .= '<li><b>'.$plugin_definition['label'].':</b> '.$plugin_definition['description'].'</li>'; |
|
123 | 123 | } |
124 | 124 | $widget_description .= '</ul>'; |
125 | 125 | $form['widget_selector'] = [ |
@@ -132,10 +132,10 @@ discard block |
||
132 | 132 | ]; |
133 | 133 | |
134 | 134 | $selection_display = []; |
135 | - $selection_description = $this->t('You can optionally allow a "work-in-progress selection zone" to be available to the editor, while still navigating, browsing and selecting the entities. The available plugins are:') . '<ul>'; |
|
135 | + $selection_description = $this->t('You can optionally allow a "work-in-progress selection zone" to be available to the editor, while still navigating, browsing and selecting the entities. The available plugins are:').'<ul>'; |
|
136 | 136 | foreach ($this->selectionDisplayManager->getDefinitions() as $plugin_id => $plugin_definition) { |
137 | 137 | $selection_display[$plugin_id] = $plugin_definition['label']; |
138 | - $selection_description .= '<li><b>' . $plugin_definition['label'] . ':</b> ' . $plugin_definition['description'] . '</li>'; |
|
138 | + $selection_description .= '<li><b>'.$plugin_definition['label'].':</b> '.$plugin_definition['description'].'</li>'; |
|
139 | 139 | } |
140 | 140 | $selection_description .= '</ul>'; |
141 | 141 | $form['selection_display'] = [ |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser']; |
54 | 54 | |
55 | 55 | $widgets = []; |
56 | - $description = $this->t('The available plugins are:') . '<ul>'; |
|
56 | + $description = $this->t('The available plugins are:').'<ul>'; |
|
57 | 57 | foreach ($this->widgetManager->getDefinitions() as $plugin_id => $plugin_definition) { |
58 | 58 | $widgets[$plugin_id] = $plugin_definition['label']; |
59 | - $description .= '<li><b>' . $plugin_definition['label'] . ':</b> ' . $plugin_definition['description'] . '</li>'; |
|
59 | + $description .= '<li><b>'.$plugin_definition['label'].':</b> '.$plugin_definition['description'].'</li>'; |
|
60 | 60 | } |
61 | 61 | $description .= '</ul>'; |
62 | 62 | $default_widgets = []; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $form['widget'] = [ |
68 | 68 | '#type' => 'select', |
69 | 69 | '#title' => $this->t('Add widget plugin'), |
70 | - '#options' => ['_none_' => '- ' . $this->t('Select a widget to add it') . ' -'] + $widgets, |
|
70 | + '#options' => ['_none_' => '- '.$this->t('Select a widget to add it').' -'] + $widgets, |
|
71 | 71 | '#description' => $description, |
72 | 72 | '#ajax' => [ |
73 | 73 | 'callback' => [get_class($this), 'tableUpdatedAjaxCallback'], |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $row['remove'] = [ |
122 | 122 | '#type' => 'submit', |
123 | 123 | '#value' => $this->t('Delete'), |
124 | - '#name' => 'remove' . $uuid, |
|
124 | + '#name' => 'remove'.$uuid, |
|
125 | 125 | '#ajax' => [ |
126 | 126 | 'callback' => [get_class($this), 'tableUpdatedAjaxCallback'], |
127 | 127 | 'wrapper' => 'widgets', |