Skip to content
Snippets Groups Projects
Unverified Commit 7a578901 authored by Piet de Nooijer's avatar Piet de Nooijer Committed by GitHub
Browse files

Merge pull request #158 from pdenooijer/issue/3189252

Issue/3189252
parents 4b8107c1 75e515ae
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
"test": [
"@phpunit",
"@phpcbf",
"@phpcs",
"@phpmd"
],
"ci": [
......
......@@ -51,6 +51,20 @@ abstract class AbstractFieldThirdPartySettingsFormEvent extends Event implements
return $this->fieldDefinition;
}
/**
* Get the field definition.
*
* @deprecated in hook_event_dispatcher:2.6.0 and is removed from hook_event_dispatcher:3.0.0. Use
* getFieldDefinition() instead.
* @see https://www.drupal.org/project/hook_event_dispatcher/issues/3189252
*
* @return \Drupal\Core\Field\FieldDefinitionInterface
* The field definition.
*/
public function getFieldDefinition(): FieldDefinitionInterface {
return $this->fieldDefinition;
}
/**
* Get the (entire) configuration form array.
*
......
......@@ -52,7 +52,7 @@ class FieldFormatterThirdPartySettingsFormEventTest extends TestCase {
FieldFormatterThirdPartySettingsFormEvent $event
) {
$event->getPlugin();
$event->getFieldDefintion();
$event->getFieldDefinition();
$event->getViewMode();
$event->getForm();
$event->getFormState();
......
......@@ -52,7 +52,7 @@ class FieldWidgetThirdPartySettingsFormEventTest extends TestCase {
FieldWidgetThirdPartySettingsFormEvent $event
) {
$event->getPlugin();
$event->getFieldDefintion();
$event->getFieldDefinition();
$event->getFormMode();
$event->getForm();
$event->getFormState();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment