WidgetInterface::massageFormValues

public WidgetInterface::massageFormValues(array $values, array $form, FormStateInterface $form_state) Massages the form values into the format expected for field values. Parameters array $values: The submitted form values produced by the widget. If the widget does not manage multiple values itself, the array holds the values generated by the multiple copies of the $element generated by the formElement() method, keyed by delta. If the widget manages multiple values, the array holds the values o

WidgetInterface::settingsForm

public WidgetInterface::settingsForm(array $form, FormStateInterface $form_state) Returns a form to configure settings for the widget. Invoked from \Drupal\field_ui\Form\EntityDisplayFormBase to allow administrators to configure the widget. The field_ui module takes care of handling submitted form values. Parameters array $form: The form where the settings form is being included in. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form de

WidgetInterface::settingsSummary

public WidgetInterface::settingsSummary() Returns a short summary for the current widget settings. If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings. Return value array A short summary of the widget settings. File core/lib/Drupal/Core/Field/WidgetInterface.php, line 46 Class WidgetInterface Interface definition for field widget plugins. Namespace Drupal\Core\Field Code public function settingsSummary();

WordLevelDiff

@todo document @private @subpackage DifferenceEngine Hierarchy class \Drupal\Component\Diff\Diffclass \Drupal\Component\Diff\MappedDiffclass \Drupal\Component\Diff\WordLevelDiff File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 13 Namespace Drupal\Component\Diff Members Name Modifiers Type Description Diff::$edits protected property The list of differences as an array of diff operations. Diff::check public function Check a Diff for validity. Diff::g

WordLevelDiff::closing

public WordLevelDiff::closing() Gets the closing set of lines. This reconstructs the $to_lines parameter passed to the constructor. Return value array The sequence of strings. Overrides Diff::closing File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 67 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function closing() { $closing = new HWLDFWordAccumulator(); foreach ($this->edits as $edit) { if

WordLevelDiff::MAX_LINE_LENGTH

File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 15 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code const MAX_LINE_LENGTH = 10000;

WordLevelDiff::orig

public WordLevelDiff::orig() Gets the original set of lines. This reconstructs the $from_lines parameter passed to the constructor. Return value array The original sequence of strings. Overrides Diff::orig File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 52 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function orig() { $orig = new HWLDFWordAccumulator(); foreach ($this->edits as $edit) { if

WordLevelDiff::_split

protected WordLevelDiff::_split($lines) File core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 24 Class WordLevelDiff @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code protected function _split($lines) { $words = array(); $stripped = array(); $first = TRUE; foreach ($lines as $line) { // If the line is too long, just pretend the entire line is one big word // This prevents resource exhaustion problems if ($first) {

WordLevelDiff::__construct

public WordLevelDiff::__construct($orig_lines, $closing_lines) Constructor. Computes diff between sequences of strings. This can be used to compute things like case-insensitive diffs, or diffs which ignore changes in white-space. Parameters $from_lines array An array of strings.: (Typically these are lines from a file.) $to_lines array An array of strings.: $mapped_from_lines array This array should: have the same size number of elements as $from_lines. The elements in $mapped_from_lines and $

WriteSafeSessionHandler

Wraps another SessionHandlerInterface to prevent writes when not allowed. Hierarchy class \Drupal\Core\Session\WriteSafeSessionHandler implements WriteSafeSessionHandlerInterface, SessionHandlerInterface File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 8 Namespace Drupal\Core\Session Members Name Modifiers Type Description WriteSafeSessionHandler::$sessionWritable protected property Whether or not the session is enabled for writing. WriteSafeSessionH