-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Person plugin #10
Person plugin #10
Conversation
*/ | ||
public function onSchemaPrepareData(AbstractEvent $event) | ||
{ | ||
$context = $event->getArgument('context'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an empty line before an "if"
die($context); | ||
return true; | ||
} | ||
$this->updateSchemaForm($event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a new line before and after this line
{ | ||
$context = $event->getArgument('context'); | ||
if (!$this->isSupported($context)) { | ||
die($context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is debug which can be removed?
|
||
if (!$this->isSupported($context)) { | ||
return true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line after the "if"
|
||
if ($form != 'Person') { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an empty line after the }
Adds Person as a schema type