Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
puresyntax71 committed Dec 11, 2024
1 parent 3bb2065 commit eb2a90a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class StateProvinceIsoFormatter extends FormatterBase {
* {@inheritdoc}
*/
public static function isApplicable(FieldDefinitionInterface $field_definition) {
dpm($field_definition->getName());
return parent::isApplicable($field_definition) && $field_definition->getName() === 'state_province_id';
}

Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/Field/FieldWidget/TextareaWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Drupal\civicrm_entity\Plugin\Field\FieldWidget;

use Drupal\Core\Field\Attribute\FieldFormatter;
use Drupal\Core\Field\Attribute\FieldWidget;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
Expand All @@ -20,9 +20,9 @@
* }
* )
*/
#[FieldFormatter(
#[FieldWidget(
id: "civicrm_entity_textarea",
label: new TranslatableMarkup("Text area (multiple rows, default CiviCRM format)"),
label: new TranslatableMarkup("Text area (multiple rows, default CiviCRM format 1)"),
field_types: [
"text_long"
]
Expand Down

0 comments on commit eb2a90a

Please sign in to comment.