public function LayoutParagraphsLayout::setEntity in Layout Paragraphs 2.0.x
Set the entity that this layout is attached to.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to set.
Return value
$this
File
- src/
LayoutParagraphsLayout.php, line 105
Class
- LayoutParagraphsLayout
- Provides a domain object for a complete Layout Paragraphs Layout.
Namespace
Drupal\layout_paragraphsCode
public function setEntity(EntityInterface $entity) {
$this->entity = $entity;
return $this;
}