You are here

public function GooglePlacesApiAttributionBlock::build in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_google_maps/modules/geolocation_google_places_api/src/Plugin/Block/GooglePlacesApiAttributionBlock.php \Drupal\geolocation_google_places_api\Plugin\Block\GooglePlacesApiAttributionBlock::build()
  2. 8 modules/geolocation_google_places_api/src/Plugin/Block/GooglePlacesApiAttributionBlock.php \Drupal\geolocation_google_places_api\Plugin\Block\GooglePlacesApiAttributionBlock::build()

Builds and returns the renderable array for this block plugin.

If a block should not be rendered because it has no content, then this method must also ensure to return no content: it must then only return an empty array, or an empty array with #cache set (with cacheability metadata indicating the circumstances for it being empty).

Return value

array A renderable array representing the content of the block.

Overrides BlockPluginInterface::build

See also

\Drupal\block\BlockViewBuilder

File

modules/geolocation_google_maps/modules/geolocation_google_places_api/src/Plugin/Block/GooglePlacesApiAttributionBlock.php, line 20

Class

GooglePlacesApiAttributionBlock
Provides a 'Fax' block.

Namespace

Drupal\geolocation_google_places_api\Plugin\Block

Code

public function build() {
  return [
    '#markup' => '<span id="geolocation-google-places-api-attribution"></span>',
  ];
}