public function LayoutParagraphsLayout::id in Layout Paragraphs 2.0.x
Returns a unique id for this layout.
Return value
string A unique id.
File
- src/
LayoutParagraphsLayout.php, line 78
Class
- LayoutParagraphsLayout
- Provides a domain object for a complete Layout Paragraphs Layout.
Namespace
Drupal\layout_paragraphsCode
public function id() {
return Crypt::hashBase64($this
->getEntity()
->getEntityType()
->id() . $this
->getEntity()
->id() . $this
->getFieldName());
}