You are here

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

Check if the target bundle id is equal to the configured bundle.

Parameters

string $bundle: Target bundle id.

Return value

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

Overrides WebformContentCreatorInterface::equalsBundle

File

src/Entity/WebformContentCreatorEntity.php, line 611

Class

WebformContentCreatorEntity
Defines the Webform Content Creator entity.

Namespace

Drupal\webform_content_creator\Entity

Code

public function equalsBundle($bundle) {
  return $bundle === $this
    ->getBundleValue();
}