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]]; } }
05.09.2019
questionnaires 8.x-1.x-dev ::
src/Plugin/Field/FieldWidget/MultiChoiceWidget.php
*/ public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) { if ($violation->arrayPropertyPath == array( 'format', ) && isset($element['format']['#access']) && !$element['format']['#access']) { return FALSE; } return $element; }
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) {
21.09.2020
address 8.x-1.x-dev ::
src/Plugin/Field/FieldWidget/AddressDefaultWidget.php
*/ public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) { $error_element = NestedArray::getValue($element['address'], $violation->arrayPropertyPath); return is_array($error_element) ? $error_element : FALSE; } /** * {@inheritdoc} */
21.09.2020
address 8.x-1.x-dev ::
src/Plugin/Field/FieldWidget/ZoneDefaultWidget.php
*/ public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) { $error_element = NestedArray::getValue($element['zone'], $violation->arrayPropertyPath); return is_array($error_element) ? $error_element : FALSE; } /** * {@inheritdoc} */
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/CustomFieldType/Textarea.php
*/ public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) { if ($violation->arrayPropertyPath == ['format'] && isset($element['format']['#access']) && !$element['format']['#access']) { // Ignore validation errors for formats if formats may not be changed, // such as when existing formats become invalid. // See \Drupal\filter\Element\TextFormat::processFormat(). return FALSE; } return $element;
07.11.2022
datafield 1.x-dev ::
src/Plugin/Field/FieldWidget/Base.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 {
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; } }
03.08.2020
jitsi 8.x-1.0-beta1 ::
src/Plugin/Field/FieldWidget/ConferenceWidget.php
*/ public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) { return isset($violation->arrayPropertyPath[0]) ? $element[$violation->arrayPropertyPath[0]] : $element; } }
01.06.2020
kaltura_media 1.0.x-dev ::
src/Plugin/Field/FieldWidget/KalturaWidget.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) {