Results

20.06.2019
field_collection_table_d8 8.x-1.x-dev :: src/Plugin/Field/FieldWidget/FieldCollectionTable.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state)  {
    return $element[$violation->arrayPropertyPath[0]];
  }

}
13.10.2020
contacts_events 8.x-1.x-dev :: src/Plugin/Field/FieldWidget/TextOverridesWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
17.11.2022
cefrl 1.0.0-beta1 :: src/Plugin/Field/FieldWidget/CEFRLLevelWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
15.03.2024
elevenlabs_field 1.0.0-beta7 :: src/Plugin/Field/FieldWidget/ElevenLabsGenerationWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
22.02.2024
inline_media_form 1.0.0-beta1 :: src/Plugin/Field/FieldWidget/InlineMediaFormWidget.php
    // Validation errors might be a about a specific form element;
    // attempt to find a matching element.
    if (empty($error->arrayPropertyPath)) {
      $error_element = $element;
    }
    else {
      $error_element =
        NestedArray::getValue($element, $error->arrayPropertyPath) ?? $element;
    }

    return $error_element;
  }

  /**
17.08.2023
timefield_d10 1.0.x-dev :: src/Plugin/Field/FieldWidget/TimeFieldStandardWidget.php
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    $element = parent::errorElement($element, $violation, $form, $form_state);
    return ($element === FALSE) ? FALSE : $element[$violation->arrayPropertyPath[0]];
  }

}
19.12.2024
funder_field 1.1.0-alpha1 :: src/Plugin/Field/FieldWidget/FunderFieldDefault.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
19.03.2025
ai_audio_field 1.0.0-rc1 :: src/Plugin/Field/FieldWidget/AiAudioFieldWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
21.08.2020
amazon_onsite 1.0.0-beta5 :: src/Plugin/Field/FieldWidget/AopProductWidget.php
    // @see https://www.drupal.org/project/drupal/issues/2600790 ff.
    /* @phpstan-ignore-next-line */
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
09.09.2020
attribution 1.0.x-dev :: src/Plugin/Field/FieldWidget/AttributionLicenseWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
09.09.2020
attribution 1.0.x-dev :: src/Plugin/Field/FieldWidget/AttributionSourceLicenseWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
09.09.2020
attribution 1.0.x-dev :: src/Plugin/Field/FieldWidget/AttributionAuthorLicenseWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
09.09.2020
attribution 1.0.x-dev :: src/Plugin/Field/FieldWidget/AttributionSourceAuthorLicenseWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
30.04.2019
codemirror_field 8.x-1.0-rc1 :: src/Plugin/Field/FieldWidget/CodemirrorWidget.php
      return FALSE;
    }
    elseif (isset($violation->arrayPropertyPath[0])) {
      return $element[$violation->arrayPropertyPath[0]];
    }
    else {
      return $element;
    }
  }
21.10.2020
commerce_donation_flow 1.0.x-dev :: src/Plugin/Field/FieldWidget/DonationLevelWidget.php
    $error_element = NestedArray::getValue(
      $element['donation_level'],
      $error->arrayPropertyPath
    );
    return is_array($error_element) ? $error_element : FALSE;
  }

  /**
   * Utility function to build the options array and default value for the form.
16.12.2022
custom_field 1.0.x-dev :: src/Plugin/Field/FieldWidget/CustomWidgetBase.php
    return isset($error->arrayPropertyPath[0]) ? $element[$error->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function calculateDependencies(): array {
07.11.2022
datafield 1.x-dev :: src/Plugin/Field/FieldWidget/Base.php
    return isset($violation->arrayPropertyPath[$delta]) ? $element[$violation->arrayPropertyPath[$delta]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  protected function getFieldSettings(): array {
10.07.2020
double_field 4.x-dev :: src/Plugin/Field/FieldWidget/DoubleField.php
    /* @noinspection PhpUndefinedFieldInspection */
    // @see https://www.drupal.org/project/drupal/issues/2600790
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  protected function getFieldSettings(): array {
01.07.2020
field_css 2.0.0-rc4 :: src/Plugin/Field/FieldWidget/CssWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }

  /**
   * {@inheritdoc}
   */
  public function massageFormValues(array $values, array $form, FormStateInterface $form_state) {
03.08.2020
jitsi 8.x-1.0-beta1 :: src/Plugin/Field/FieldWidget/EmbedWidget.php
   */
  public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
    return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element;
  }
}

Pages

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc