You are here

public function CalendarEventEmbeddedWidget::getItemValues in Opigno calendar event 8

Same name in this branch
  1. 8 src/CalendarEventEmbeddedWidget.php \Drupal\opigno_calendar_event\CalendarEventEmbeddedWidget::getItemValues()
  2. 8 src/Form/CalendarEventEmbeddedWidget.php \Drupal\opigno_calendar_event\Form\CalendarEventEmbeddedWidget::getItemValues()
Same name and namespace in other branches
  1. 3.x src/Form/CalendarEventEmbeddedWidget.php \Drupal\opigno_calendar_event\Form\CalendarEventEmbeddedWidget::getItemValues()

Returns the submitted values for the specified subform item.

Parameters

array $form: The parent form array.

\Drupal\Core\Form\FormStateInterface $form_state: The parent form state.

int $delta: The item delta.

Return value

array An associative array of submitted form values.

File

src/Form/CalendarEventEmbeddedWidget.php, line 394

Class

CalendarEventEmbeddedWidget
Provides a widget to attach a calendar event to an entity.

Namespace

Drupal\opigno_calendar_event\Form

Code

public function &getItemValues(array $form, FormStateInterface $form_state, $delta) {
  return NestedArray::getValue($form_state
    ->getValues(), $this
    ->getElementParents($form, $delta));
}