3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Fix Call to deprecated function module_load_include().

This commit is contained in:
Michael Stenta 2022-09-13 10:01:23 -04:00
parent 757399438f
commit bafd1f0132
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ use Drupal\Core\Form\FormStateInterface;
* Implements hook_entity_base_field_info().
*/
function farm_group_entity_base_field_info(EntityTypeInterface $entity_type) {
module_load_include('inc', 'farm_group', 'farm_group.base_fields');
\Drupal::moduleHandler()->loadInclude('farm_group', 'inc', 'farm_group.base_fields');
switch ($entity_type->id()) {
// Build asset base fields.

View file

@ -13,7 +13,7 @@ use Drupal\Core\Entity\EntityTypeInterface;
function farm_entity_fields_entity_base_field_info(EntityTypeInterface $entity_type) {
// Include helper functions.
module_load_include('inc', 'farm_entity_fields', 'farm_entity_fields.base_fields');
\Drupal::moduleHandler()->loadInclude('farm_entity_fields', 'inc', 'farm_entity_fields.base_fields');
// Add common base fields to all asset types.
if ($entity_type->id() == 'asset') {

View file

@ -12,7 +12,7 @@ use Drupal\Core\Form\FormStateInterface;
* Implements hook_entity_base_field_info().
*/
function farm_inventory_entity_base_field_info(EntityTypeInterface $entity_type) {
module_load_include('inc', 'farm_inventory', 'farm_inventory.base_fields');
\Drupal::moduleHandler()->loadInclude('farm_inventory', 'inc', 'farm_inventory.base_fields');
switch ($entity_type->id()) {
// Build asset base fields.

View file

@ -28,7 +28,7 @@ function farm_location_form_asset_form_alter(&$form, FormStateInterface $form_st
* Implements hook_entity_base_field_info().
*/
function farm_location_entity_base_field_info(EntityTypeInterface $entity_type) {
module_load_include('inc', 'farm_location', 'farm_location.base_fields');
\Drupal::moduleHandler()->loadInclude('farm_location', 'inc', 'farm_location.base_fields');
switch ($entity_type->id()) {
// Build asset base fields.