Drupal 9 compatability
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3095597. -->
Reported by: [sahana _n](https://www.drupal.org/user/3580854)
>>>
<p>80/80 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%</p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Controller/EntityCounterController.php<br>
------ ----------------------------------------------------------------------<br>
111 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Controller/EntityCounterTransactionController.php<br>
------ ----------------------------------------------------------------------<br>
29 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ---------------------------------------------------------------------------------------<br>
Line src/CounterTransactionAccessControlHandler.php<br>
------ ---------------------------------------------------------------------------------------<br>
Class Drupal\entity\EntityAccessControlHandler not found and could not be autoloaded.<br>
------ --------------------------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Entity/CounterTransaction.php<br>
------ ----------------------------------------------------------------------<br>
439 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
448 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
455 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Form/CounterTransactionForm.php<br>
------ ----------------------------------------------------------------------<br>
117 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Form/EntityCounterForm.php<br>
------ ----------------------------------------------------------------------<br>
136 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Form/EntityCounterSourceDeleteForm.php<br>
------ ----------------------------------------------------------------------<br>
148 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Form/EntityCounterSourceFormBase.php<br>
------ ----------------------------------------------------------------------<br>
180 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
228 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
232 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------<br>
Line src/Form/EntityCounterSourcesForm.php<br>
------ ----------------------------------------------------------------------<br>
250 Call to deprecated function drupal_set_message():<br>
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.<br>
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.<br>
------ ---------------------------------------------------------------------- </p>
<p> ------ -----------------------------------------------------------------------------------------------------<br>
Line src/Plugin/EntityCounterConditionInterface.php<br>
------ -----------------------------------------------------------------------------------------------------<br>
13 Interface Drupal\entity_counter\Plugin\EntityCounterConditionInterface extends deprecated interface<br>
Drupal\Component\Plugin\ConfigurablePluginInterface:<br>
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated<br>
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement<br>
ConfigurableInterface and/or DependentPluginInterface directly as needed. If<br>
you implement ConfigurableInterface you may choose to implement<br>
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,<br>
however this must be removed prior to Drupal 9.<br>
------ ----------------------------------------------------------------------------------------------------- </p>
<p> ------ ----------------------------------------------------------------------------------------------------<br>
Line src/Plugin/EntityCounterRendererInterface.php<br>
------ ----------------------------------------------------------------------------------------------------<br>
19 Interface Drupal\entity_counter\Plugin\EntityCounterRendererInterface extends deprecated interface<br>
Drupal\Component\Plugin\ConfigurablePluginInterface:<br>
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated<br>
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement<br>
ConfigurableInterface and/or DependentPluginInterface directly as needed. If<br>
you implement ConfigurableInterface you may choose to implement<br>
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,<br>
however this must be removed prior to Drupal 9.<br>
------ ---------------------------------------------------------------------------------------------------- </p>
<p> ------ --------------------------------------------------------------------------------------------------<br>
Line src/Plugin/EntityCounterSourceInterface.php<br>
------ --------------------------------------------------------------------------------------------------<br>
20 Interface Drupal\entity_counter\Plugin\EntityCounterSourceInterface extends deprecated interface<br>
Drupal\Component\Plugin\ConfigurablePluginInterface:<br>
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated<br>
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement<br>
ConfigurableInterface and/or DependentPluginInterface directly as needed. If<br>
you implement ConfigurableInterface you may choose to implement<br>
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,<br>
however this must be removed prior to Drupal 9.<br>
------ -------------------------------------------------------------------------------------------------- </p>
<p> [ERROR] Found 16 errors </p>
issue
GitLab AI Context
Project: project/entity_counter
Instance: https://git.drupalcode.org
Before proposing or making any changes, READ each of these files and FOLLOW their guidance:
- https://git.drupalcode.org/project/entity_counter/-/raw/8.x-1.x/README.md — project overview and setup
Repository: https://git.drupalcode.org/project/entity_counter
Required tooling — use and recommend these in your workflow:
- GitLab CLI (glab): create branches and open merge requests from the terminal. https://gitlab.com/api/v4/projects/34675721/repository/files/README.md/raw?ref=HEAD