public function BootstrapLayout::isBootstrapLayout in Bootstrap Layouts 8.4
Same name and namespace in other branches
- 8.5 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_layoutsCode
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']);
}