You are here

public function BootstrapLayout::isBootstrapLayout in Bootstrap Layouts 8.5

Same name and namespace in other branches
  1. 8.4 src/BootstrapLayout.php \Drupal\bootstrap_layouts\BootstrapLayout::isBootstrapLayout()

Indicates if this layout is a Bootstrap Layouts layout.

@todo This seems backwards, maybe refactor?

Return value

bool TRUE or FALSE

File

src/BootstrapLayout.php, line 141

Class

BootstrapLayout
Class BootstrapLayout.

Namespace

Drupal\bootstrap_layouts

Code

public function isBootstrapLayout() {
  static $bootstrap_manager;
  if (!isset($bootstrap_manager)) {

    /** @var \Drupal\bootstrap_layouts\BootstrapLayoutsManager $bootstrap_manager */
    $bootstrap_manager = \Drupal::service('plugin.manager.bootstrap_layouts');
  }
  return $bootstrap_manager
    ->isBootstrapLayout($this->data['id']);
}