You are here

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_paragraphs

Code

public function id() {
  return Crypt::hashBase64($this
    ->getEntity()
    ->getEntityType()
    ->id() . $this
    ->getEntity()
    ->id() . $this
    ->getFieldName());
}