You are here

class LocationMapBlock in Location Map 8.2

Provides a block with a static map in it.

Plugin annotation


@Plugin(
  id = "location_map_block",
  admin_label = @Translation("Location map block"),
  module = "locationmap"
)

Hierarchy

  • class \Drupal\locationmap\Plugin\block\block\LocationMapBlock extends \Drupal\block\BlockBase

Expanded class hierarchy of LocationMapBlock

File

lib/Drupal/locationmap/Plugin/block/block/LocationMapBlock.php, line 22
Contains \Drupal\locationmap\Plugin\block\block\LocationMapBlock.

Namespace

Drupal\locationmap\Plugin\block\block
View source
class LocationMapBlock extends BlockBase {

  /**
   * Overrides \Drupal\block\BlockBase::settings().
   */
  public function settings() {
    return array(
      'properties' => array(),
      'seconds_online' => 900,
      'max_list_count' => 10,
    );
  }

  /**
   * Implements \Drupal\block\BlockBase::build().
   */
  public function build() {
    return array(
      '#items' => 'Foo',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LocationMapBlock::build public function Implements \Drupal\block\BlockBase::build().
LocationMapBlock::settings public function Overrides \Drupal\block\BlockBase::settings().