Results
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) { 19.09.2020
metis 3.0.x-dev ::
src/Plugin/Field/FieldWidget/MetisWidget.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) { 13.10.2020
o365 2.0.3 ::
modules/o365_sharepoint_field/src/Plugin/Field/FieldWidget/SharePointSearchWidget.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) { 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;
} 24.11.2021
reference_date 1.0.x-dev ::
src/Plugin/Field/FieldWidget/ReferenceDateComboAutocompleteWidget.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) { 12.09.2020
social_media_links 8.x-2.x-dev ::
modules/social_media_links_field/src/Plugin/Field/FieldWidget/SocialMediaLinksFieldSelectWidget.php
*/
public function errorElement(array $element, ConstraintViolationInterface $error, array $form, FormStateInterface $form_state) {
$error_element = NestedArray::getValue($element['platform_element'], $error->arrayPropertyPath);
return is_array($error_element) ? $error_element : FALSE;
}
/**
* {@inheritdoc}
*/ 16.11.2021
tckk_field 1.0.x-dev ::
src/Plugin/Field/FieldWidget/TCKimlikNoWidget.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 validateElement(array $element, FormStateInterface $form_state) { 20.03.2021
text_with_number 8.x-1.x-dev ::
src/Plugin/Field/FieldWidget/TextWithNumberWidgetBase.php
*/
public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
if ($violation->arrayPropertyPath == ['text_value', 'format'] && isset($element['text_value']['format']['#access']) && !$element['text_value']['format']['#access']) {
// Ignore validation errors for formats that may not be changed,
// such as when existing formats become invalid.
// See \Drupal\filter\Element\TextFormat::processFormat().
return FALSE;
}
return $element; 20.07.2021
timefield 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]];
}
} 07.04.2022
triples_field 1.0.x-dev ::
src/Plugin/Field/FieldWidget/TriplesField.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 { 07.04.2022
triples_field 1.0.x-dev ::
src/Plugin/Field/FieldWidget/TriplesFieldTable.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 { 27.08.2021
ztools 1.0.x-dev ::
src/Plugin/Field/FieldWidget/TextfieldListWidget.php
// @todo Remove BC layer https://www.drupal.org/i/3307859 on PHP 8.2.
$violation->arrayPropertyPath = $property_path;
}
/** @var \Symfony\Component\Validator\ConstraintViolationInterface[] $delta_violations */
foreach ($violations_by_delta as $delta => $delta_violations) {
foreach ($delta_violations as $violation) { 