public function getFieldLayoutId()
    {
        $fieldLayoutId = $this->getAttribute('fieldLayoutId');
        if (null === $fieldLayoutId && null !== $this->fieldLayout) {
            $fieldLayoutId = $this->fieldLayoutId = $this->fieldLayout->id;
        }

        return $fieldLayoutId;
    }