You are here

LayerStyleLoaderInterface.php in farmOS 2.x

Namespace

Drupal\farm_map

File

modules/core/map/src/LayerStyleLoaderInterface.php
View source
<?php

namespace Drupal\farm_map;

use Drupal\farm_map\Entity\LayerStyleInterface;

/**
 * Layer style loader interface.
 */
interface LayerStyleLoaderInterface {

  /**
   * Load a single layer style definition, optionally filtered by conditions.
   *
   * @param array $conditions
   *   An array of conditions for filtering.
   *
   * @return \Drupal\farm_map\Entity\LayerStyleInterface|null
   *   Returns a layer style definition, or NULL if no matches were found.
   */
  public function load(array $conditions = []) : ?LayerStyleInterface;

}

Interfaces

Namesort descending Description
LayerStyleLoaderInterface Layer style loader interface.