@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * {@inheritdoc} |
24 | 24 | */ |
25 | 25 | public function render(ResultRow $values) { |
26 | - return ViewsRenderPipelineMarkup::create('<!--form-item-' . $this->options['id'] . '--' . $values->index . '-->'); |
|
26 | + return ViewsRenderPipelineMarkup::create('<!--form-item-'.$this->options['id'].'--'.$values->index.'-->'); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | '#type' => 'checkbox', |
63 | 63 | '#title' => $this->t('Select this item'), |
64 | 64 | '#title_display' => 'invisible', |
65 | - '#return_value' => $entity->getEntityTypeId() . ':' . $entity->id(), |
|
65 | + '#return_value' => $entity->getEntityTypeId().':'.$entity->id(), |
|
66 | 66 | '#attributes' => ['name' => "entity_browser_select[$row_index]"], |
67 | 67 | '#default_value' => NULL, |
68 | 68 | ]; |
@@ -124,8 +124,7 @@ discard block |
||
124 | 124 | return [ |
125 | 125 | '#markup' => t('Entity browser select form field not found on a view. <a href=":link">Go fix it</a>!', [':link' => $url]), |
126 | 126 | ]; |
127 | - } |
|
128 | - else { |
|
127 | + } else { |
|
129 | 128 | return [ |
130 | 129 | '#markup' => t('Entity browser select form field not found on a view. Go fix it!'), |
131 | 130 | ]; |
@@ -183,8 +182,7 @@ discard block |
||
183 | 182 | ]); |
184 | 183 | $form_state->setError($form['widget']['view']['entity_browser_select'], $message); |
185 | 184 | } |
186 | - } |
|
187 | - catch (PluginNotFoundException $e) { |
|
185 | + } catch (PluginNotFoundException $e) { |
|
188 | 186 | $message = t('The Entity Type @type does not exist.', [ |
189 | 187 | '@type' => $parts[0], |
190 | 188 | ]); |