Commit 858b53ba authored by tim.plunkett's avatar tim.plunkett

Fix the naming of user Link class.

parent f7fa9970
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Views\contact\Plugin\views\field; namespace Views\contact\Plugin\views\field;
use Views\user\Plugin\views\field\UserLink; use Views\user\Plugin\views\field\Link;
use Drupal\Core\Annotation\Plugin; use Drupal\Core\Annotation\Plugin;
/** /**
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* plugin_id = "contact_link" * plugin_id = "contact_link"
* ) * )
*/ */
class ContactLink extends UserLink { class ContactLink extends Link {
function options_form(&$form, &$form_state) { function options_form(&$form, &$form_state) {
$form['text']['#title'] = t('Link label'); $form['text']['#title'] = t('Link label');
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* plugin_id = "user_link" * plugin_id = "user_link"
* ) * )
*/ */
class UserLink extends FieldPluginBase { class Link extends FieldPluginBase {
function construct() { function construct() {
parent::construct(); parent::construct();
$this->additional_fields['uid'] = 'uid'; $this->additional_fields['uid'] = 'uid';
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* plugin_id = "user_link_cancel" * plugin_id = "user_link_cancel"
* ) * )
*/ */
class views_handler_field_user_link_cancel extends Link { class LinkCancel extends Link {
function render_link($data, $values) { function render_link($data, $values) {
$uid = $values->{$this->aliases['uid']}; $uid = $values->{$this->aliases['uid']};
......
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