public function LayoutParagraphsComponent::hasLayout in Layout Paragraphs 2.0.x
Returns true if this component has a layout applied.
Return value
bool True if is layout.
File
- src/
LayoutParagraphsComponent.php, line 76
Class
- LayoutParagraphsComponent
- Provides a domain object for a single Layout Paragraphs Component.
Namespace
Drupal\layout_paragraphsCode
public function hasLayout() {
return !empty($this
->getSetting('layout'));
}