Commit beae3aec authored by Italo Mairo's avatar Italo Mairo
Browse files

fix of 'Issue #3293108: Argument 1 passed to...

fix of 'Issue #3293108: Argument 1 passed to Drupal\geofield_map\Services\MarkerIconService::getIconFileManagedElement() must be of the type int, null given'
parent 92fd6a0f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ class MarkerIconService {
  /**
   * Generate Icon File Managed Element.
   *
   * @param int $fid
   * @param int|null $fid
   *   The file to save.
   * @param int|null $row_id
   *   The row id.
@@ -336,7 +336,7 @@ class MarkerIconService {
   * @return array
   *   The icon preview element.
   */
  public function getIconFileManagedElement(int $fid, int $row_id = NULL): array {
  public function getIconFileManagedElement(int $fid = NULL, int $row_id = NULL): array {

    $upload_location = $this->markersLocationUri();

@@ -641,7 +641,7 @@ class MarkerIconService {
   * @return string
   *   The url path to the file id (image style).
   */
  public function getFileManagedUrl(int $fid = NULL, string $image_style = 'none'): string {
  public function getFileManagedUrl($fid = NULL, string $image_style = 'none'): string {
    try {
      /* @var \Drupal\file\Entity\file $file */
      if (isset($fid) && $file = $this->entityManager->getStorage('file')->load($fid)) {