The code comment block for the method serializeValue in a new field type is wrong. Seems like the generated code comment is the comment for another method.
/**
* Modifies an element query.
*
* This method will be called whenever elements are being searched for that may have this field assigned to them.
*
* If the method returns `false`, the query will be stopped before it ever gets a chance to execute.
*
* @param ElementQueryInterface $query The element query
* @param mixed $value The value that was set on this field’s corresponding [[ElementCriteriaModel]] param,
* if any.
*
* @return null|false `false` in the event that the method is sure that no elements are going to be found.
*/
public function serializeValue($value, ElementInterface $element = null)
{
return parent::serializeValue($value, $element);
}
Steps to reproduce (via pluginfactory.io):
enable Code Comments
enable FieldTypes
fill the other required fields with any valid text
The code comment block for the method serializeValue in a new field type is wrong. Seems like the generated code comment is the comment for another method.
Steps to reproduce (via pluginfactory.io):