You are here

protected function BackgroundImageFormatter::isBackgroundImageDisplay in Simple Background image formatter 8

1 call to BackgroundImageFormatter::isBackgroundImageDisplay()
BackgroundImageFormatter::viewElements in src/Plugin/Field/FieldFormatter/BackgroundImageFormatter.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/BackgroundImageFormatter.php, line 162

Class

BackgroundImageFormatter
Plugin implementation of the background_image_formatter.

Namespace

Drupal\background_image_formatter\Plugin\Field\FieldFormatter

Code

protected function isBackgroundImageDisplay() {
  return $this
    ->getPluginId() == 'background_image_formatter';
}