You are here

public function LinkField::getWidgetValue in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/Plugin/conditional_fields/handler/LinkField.php \Drupal\conditional_fields\Plugin\conditional_fields\handler\LinkField::getWidgetValue()

Get values from widget settings for plugin.

Parameters

array $value_form: Dependency options.

Return value

mixed Values for triggering events.

Overrides ConditionalFieldsHandlerBase::getWidgetValue

1 call to LinkField::getWidgetValue()
LinkField::statesHandler in src/Plugin/conditional_fields/handler/LinkField.php
@todo Provide possibility to create states with pair URL and title. Only states for URL currently supported.

File

src/Plugin/conditional_fields/handler/LinkField.php, line 148

Class

LinkField
Provides states handler for links provided by the Link module.

Namespace

Drupal\conditional_fields\Plugin\conditional_fields\handler

Code

public function getWidgetValue(array $value_form) {
  return isset($value_form[0]) && isset($value_form[0]['uri']) ? $value_form[0]['uri'] : '';
}