component_library-1.0.x-dev/modules/gcomponent_library/gcomponent_library.module
modules/gcomponent_library/gcomponent_library.module
<?php // phpcs:ignore Drupal.Commenting.FileComment.Missing
declare(strict_types=1);
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\gcomponent_library\BaseFields;
/**
* @file
* Primary module hooks for gcomponent_library module.
*/
function gcomponent_library_entity_base_field_info(EntityTypeInterface $entity_type): array {
return \Drupal::classResolver(BaseFields::class)->baseFieldInfo($entity_type);
}
/**
* Implements hook_preprocess_HOOK() for component_library_component.
*/
function gcomponent_library_preprocess_component_library_component(array &$variables, string $hook, array $info): void {
\Drupal::service('gcomponent_library.preprocess_component_library')->preprocess($variables, $info);
}
