You are here

public function WebformContentCreatorEntity::equalsWebform in Webform Content Creator 2.x

Same name and namespace in other branches
  1. 8 src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::equalsWebform()
  2. 3.x src/Entity/WebformContentCreatorEntity.php \Drupal\webform_content_creator\Entity\WebformContentCreatorEntity::equalsWebform()

Check if the webform id is equal to the configured webform id.

Parameters

string $webform: Webform id.

Return value

bool True, if the parameter is equal to the webform id of Webform content creator entity. Otherwise, returns false.

Overrides WebformContentCreatorInterface::equalsWebform

File

src/Entity/WebformContentCreatorEntity.php, line 625

Class

WebformContentCreatorEntity
Defines the Webform Content Creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

public function equalsWebform($webform) {
  return $webform === $this
    ->getWebform();
}